influx 0.1.3 influx: ^0.1.3 copied to clipboard
Flutter base library.
Influx #
Flutter base library.
Features #
- Model view manager with navigation observer
Installation #
Add influx: ^0.1.3
to your pubspec.yaml
dependencies and import it as follows:
import 'package:influx/influx.dart';
Examples #
Model view manager #
class AppViewState extends State<AppView>
{
...
@override
Widget build( BuildContext context )
{
return MaterialApp(
...
navigatorObservers: <NavigatorObserver>[ ModelViewNavigatorObserver.instance ],
...
);
}
}
class AbcViewState extends State<AbcView> implements ModelView
{
Abc
abc;
...
@override
Widget build( BuildContext build_context )
{
ModelViewManager.addView( this );
return Scaffold(
...
);
}
@override
void dispose()
{
ModelViewManager.removeView( this );
super.dispose();
}
@override
void updateView()
{
setState( () {} );
}
@override
List<dynamic> getModelList()
{
return [ abc ];
}
}
class Abc
{
...
void ChangeSomething(
)
{
...
ModelViewManager.manageChange( [ this ] );
}
}
Version #
0.1
Author #
Eric Pelzer (ecstatic.coder@gmail.com).
License #
This project is licensed under the GNU Lesser General Public License version 3.
See the LICENSE file for details.