An open API service indexing awesome lists of open source software.

https://github.com/senselogic/influx

Flutter base library.
https://github.com/senselogic/influx

Last synced: 4 months ago
JSON representation

Flutter base library.

Awesome Lists containing this project

README

        

![](https://github.com/senselogic/INFLUX/blob/master/LOGO/influx.png)

# Influx

Flutter base library.

## Features

* Model dataView manager with navigation observer

## Installation

Add `influx: ^0.2.0` to your `pubspec.yaml` dependencies:

```dart

dependencies:
flutter:
sdk: flutter
...
influx: ^0.2.0
```

Import it:

```dart
import 'package:influx/influx.dart';
```

## Examples

### Model dataView manager

```dart
class AppViewState extends State
{
...

@override
Widget build( BuildContext context )
{
return MaterialApp(
...
navigatorObservers: [ DataViewNavigatorObserver.instance ],
...
);
}
}
```

```dart
class AbcViewState extends State 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 getViewData()
{
return [ abc ];
}

@override
void updateView()
{
setState( () {} );
}
}
```

```dart
class Abc
{
...

void ChangeSomething(
)
{
...
DataViewManager.instance.updateViews( [ this ] );
}
}
```

## 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](LICENSE) file for details.