https://github.com/senselogic/influx
Flutter base library.
https://github.com/senselogic/influx
Last synced: 4 months ago
JSON representation
Flutter base library.
- Host: GitHub
- URL: https://github.com/senselogic/influx
- Owner: SenseLogic
- License: lgpl-3.0
- Created: 2023-01-15T10:58:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-11T15:16:00.000Z (about 2 years ago)
- Last Synced: 2025-01-17T09:22:26.884Z (5 months ago)
- Language: Dart
- Size: 234 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# 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.