Skip to content

Instantly share code, notes, and snippets.

View aloisdeniel's full-sized avatar
🤘
Flutter / Figma

Aloïs Deniel aloisdeniel

🤘
Flutter / Figma
View GitHub Profile
@aloisdeniel
aloisdeniel / main.dart
Last active January 21, 2026 23:03
Flutter Codegen plugin for Figma / Components
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
abstract class Colors {
static const white = Color(0xFFFFFFFF);
static const blueLight = Color(0xFFECEFFF);
static const blueMedium = Color(0xFF4463FF);
static const blueMediumDark = Color(0xFF314DD5);
}
@aloisdeniel
aloisdeniel / main.dart
Last active January 20, 2026 22:15
Flutter Codegen plugin for Figma / Vector Graphics
import 'package:flutter/material.dart';
import 'dart:math' as math;
import 'dart:ui' as ui;
import 'dart:typed_data';
import 'package:flutter/widgets.dart' as fl;
void main() {
runApp(const MyApp());
}
@aloisdeniel
aloisdeniel / main.dart
Last active January 19, 2026 17:34
Flutter Codegen plugin for Figma / Variables and Styles
import 'package:flutter/material.dart';
// The code below has been generated with the Flutter Codegen plugin for Figma.
import 'dart:ui' as ui;
import 'package:flutter/widgets.dart' as fl;
import 'package:google_fonts/google_fonts.dart' as gf;
typedef VariableMode = ({ColorsMode colors, AccentMode accent, FontsMode fonts});
@aloisdeniel
aloisdeniel / pointer_area.dart
Last active November 7, 2025 08:36
A basic Flutter widget for buttons or any pointer interaction.
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
final class PointerState {
const PointerState({
required this.hasFocus,
required this.isPressed,
required this.isHovering,
});
@aloisdeniel
aloisdeniel / flutter_bsod.dart
Last active July 19, 2024 13:27
Flutter BSOD
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@aloisdeniel
aloisdeniel / slide.dart
Last active December 19, 2023 10:13
FittedBox
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
const availableSizes = <Size?>[
null,
Size(1920, 1080),
Size(720, 480),
];
@aloisdeniel
aloisdeniel / flutter_custom_layout.dart
Last active October 2, 2023 22:00
Flutter custom layout
import 'dart:math' as math;
import 'package:flutter/material.dart';
const darkBlue = Color.fromARGB(255, 18, 32, 47);
const barBackground = Color(0xFFE9EAF6);
const barForeground = Color(0xFF0B0B10);
void main() {
runApp(MyApp());
@aloisdeniel
aloisdeniel / text_style.dart
Created May 17, 2023 12:42
Flutter Text Style
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
@aloisdeniel
aloisdeniel / vector_heart.dart
Created August 9, 2022 08:09
Flutter vector graphics - Custom painter example
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@aloisdeniel
aloisdeniel / bastiui_challenge.dart
Created April 23, 2022 14:57
BastiUI - Challenge
import 'dart:math';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
abstract class Colors {
static const bg1 = Color(0xFF00232B);
static const content1 = Color(0xFFFFFFFF);
static const content2 = Color(0xAAFFFFFF);
static const shadow3d1 = Color(0xFF000000);