Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
void main() {
runApp(MainApp());
}
class MainApp extends StatelessWidget {
final RouterDelegate<AppState> _routerDelegate = MainRouterDelegate();
MainApp({super.key});
import 'package:flutter/material.dart';
void main() {
runApp(MainApp());
}
class MainApp extends StatelessWidget {
final RouterDelegate<AppState> _routerDelegate = MainRouterDelegate();
MainApp({super.key});
@eximius313
eximius313 / flutter_bug_in_transition.dart
Last active January 10, 2023 16:16
Demonstrate bug in Flutter where usage of "TransitionPage" doesn't change the page, but "MaterialPage" does
import 'package:flutter/material.dart';
void main() {
runApp(MyApp(),);
}
class MyApp extends StatelessWidget {
MyApp({super.key}) : _routerDelegate = AppRouterDelegate();
final RouterDelegate<AppState> _routerDelegate;
@eximius313
eximius313 / flutter_bug_in_navigator.dart
Last active January 10, 2023 16:15
Demonstrate bug in Flutter, where Navigator behaves inconsistently
import 'package:flutter/material.dart';
void main() {
runApp(MyApp(),);
}
class MyApp extends StatelessWidget {
MyApp({super.key}) : _routerDelegate = AppRouterDelegate();
final RouterDelegate<AppState> _routerDelegate;