notifier_plugin 1.0.3 copy "notifier_plugin: ^1.0.3" to clipboard
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!

example/lib/main.dart

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;}
12
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package that makes writing dynamic UI easier, intuitive and more efficient than it could have ever been!

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, http

More

Packages that depend on notifier_plugin