Skip to content

Instantly share code, notes, and snippets.

View alefwd's full-sized avatar

Ale alefwd

View GitHub Profile
@alefwd
alefwd / splash_blocked_inner.dart
Last active August 19, 2024 16:18
Splash effect blocked by inner layout
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@alefwd
alefwd / const_class_with_nested_mutable.dart
Last active July 25, 2024 06:34
An example of a const class with nested mutable class
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
// global for simplicity
final AleMutableController controller = AleMutableController();
class MyApp extends StatelessWidget {
@alefwd
alefwd / two_appbars_dont_compile.dart
Last active December 5, 2023 12:25
Can't compile two app bars
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override