influx 0.1.7 copy "influx: ^0.1.7" to clipboard
influx: ^0.1.7 copied to clipboard

Flutter base library.

Influx #

Flutter base library.

Features #

  • Model view manager with navigation observer

Installation #

Add influx: ^0.1.7 to your pubspec.yaml dependencies:


dependencies:
  flutter:
    sdk: flutter
  ...
  influx: ^0.1.7

Import it:

import 'package:influx/influx.dart';

Examples #

Model view manager #

class AppViewState extends State<AppView>
{
    ...

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

    ...

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

        return Scaffold(
            ...
            );
    }

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

        super.dispose();
    }

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

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

    void ChangeSomething(
        )
    {
        ...
        ViewManager.instance.updateViews( [ 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.

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Flutter base library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on influx