Skip to content

Instantly share code, notes, and snippets.

@tchafack
tchafack / main.dart
Last active May 4, 2023 09:31
Flutter Material 3 from design to deployment. Gist based on Flutter Forward https://www.youtube.com/watch?v=7nrhTdS7dHg
import 'theme.dart';
..
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
const basilTheme = BasilTheme();
return MaterialApp.router(
@tchafack
tchafack / Category.php
Last active August 28, 2022 14:29
Annotation Open API & Symfony : multipart/form-data requestBody
/**
* ...
*
* @OA\Schema(
* schema="CategoryPost",
* type="object",
* ...
*
* @OA\Property(
* type="object",
@tchafack
tchafack / floatingbuton.dart
Created November 9, 2019 13:34
[Flutter, Dart] Multiple FloatingActionButton
import 'package:flutter/material.dart';
class MultiFloatingButton extends StatefulWidget {
@override
_MultiFloatingButtonState createState() => _MultiFloatingButtonState();
}
class _MultiFloatingButtonState extends State<MultiFloatingButton> {
@override
@tchafack
tchafack / eventform.dart
Last active November 9, 2019 13:03
Relative complexe form line (TextFormField-TextField- in a Row) with Flutter (Dart)
import 'package:flutter/material.dart';
class EventForm extends StatefulWidget {
@override
_EventFormState createState() => _EventFormState();
}
class _EventFormState extends State<EventForm> {
static GlobalKey<FormState> _eventformKey = GlobalKey<FormState>();