notifier_plugin 1.0.3 notifier_plugin: ^1.0.3 copied to clipboard
A Flutter package that makes writing dynamic UI easier, intuitive and more efficient than it could have ever been!
import 'package:flutter/material.dart';
import 'menu.dart';
import 'storage.dart';
import 'examples/notifier.dart';
import 'examples/valNotifier.dart';
import 'examples/tweenNotifier.dart';
import 'examples/httpNotifier.dart';
import 'examples/swNotifier.dart';
import 'examples/timedNotifier.dart';
void main() async {
runApp(ExampleApp());
loadRes();
}
class ExampleApp extends StatelessWidget with WidgetsBindingObserver {
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: "main",
builder: (_,c) => ScrollConfiguration(behavior: GlowFree(), child: c),
debugShowCheckedModeBanner: false,
navigatorObservers: [NavigatorObserver()],
routes: {
"main": (c) => MenuScreen(),
"notifier": (c) => NotifierExample(),
"valNotifier": (c) => ValNotifierExample(),
"tweenNotifier": (c) => TweenNotifierExample(),
"httpNotifier": (c) => HttpNotifierExample(),
"timedNotifier": (c) => TimedNotifierExample(),
"swNotifier": (c) => SWNotifierExample(),
},
);
}
}
class GlowFree extends ScrollBehavior {buildViewportChrome(_,c,__) => c;}