Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flutterando/flutter_mobx_helpers
Widgets and Utils for increment mobx
https://github.com/flutterando/flutter_mobx_helpers
Last synced: 3 days ago
JSON representation
Widgets and Utils for increment mobx
- Host: GitHub
- URL: https://github.com/flutterando/flutter_mobx_helpers
- Owner: Flutterando
- License: mit
- Created: 2020-01-26T15:01:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T14:29:59.000Z (over 3 years ago)
- Last Synced: 2025-01-08T19:55:19.907Z (16 days ago)
- Language: Dart
- Size: 69.3 KB
- Stars: 8
- Watchers: 7
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_mobx_helpers
A set of tools for MobX.
## Install
edit your pubspec.yaml file
```
dependencies:
flutter_mobx_helpers:
```## Tools
### ObservableListener
Use this widget to have a response that can perform actions on the business rule such as opening another screen or calling a SnackBar/Dialog.
```dart
ObserverListener(
listener: (_) {
var snack = SnackBar(content: Text('Click ${store.value}'));
_scaffold.currentState.showSnackBar(snack);
},
child: RaisedButton(
child: Text('Call Snackbar'),
onPressed: store.setValue,
),
)```
## Contributions
Do you have any idea of a widget or utility to add to this help? Submit a pull request to this package's repository. We look forward to it!