influx

Last updated:

0 purchases

influx Image
influx Images
Add to Cart

Description:

influx

Influx #
Flutter base library.
Features #

Model dataView manager with navigation observer

Installation #
Add influx: ^0.2.0 to your pubspec.yaml dependencies:

dependencies:
flutter:
sdk: flutter
...
influx: ^0.2.0
copied to clipboard
Import it:
import 'package:influx/influx.dart';
copied to clipboard
Examples #
Model dataView manager #
class AppViewState extends State<AppView>
{
...

@override
Widget build( BuildContext context )
{
return MaterialApp(
...
navigatorObservers: <NavigatorObserver>[ DataViewNavigatorObserver.instance ],
...
);
}
}
copied to clipboard
class AbcViewState extends State<AbcView> implements DataView
{
Abc
abc;

...

@override
Widget build( BuildContext build_context )
{
DataViewManager.instance.addView( this );

return Scaffold(
...
);
}

@override
void dispose()
{
DataViewManager.instance.removeView( this );

super.dispose();
}

@override
List<dynamic> getViewData()
{
return [ abc ];
}

@override
void updateView()
{
setState( () {} );
}
}
copied to clipboard
class Abc
{
...

void ChangeSomething(
)
{
...
DataViewManager.instance.updateViews( [ this ] );
}
}
copied to clipboard
Version #
0.2
Author #
Eric Pelzer ([email protected]).
License #
This project is licensed under the GNU Lesser General Public License version 3.
See the LICENSE file for details.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.