flutter-provide
flutter-provide copied to clipboard
A simple framework for state management in Flutter.
The method used on context is deprecated and leads to an error when building the project. So i fixed it.
Explain: '||' > '??' Actually, so 'parent?.updateShouldNotify(oldWidget.parent) ?? false || providers != oldWidget.providers' equals 'parent?.updateShouldNotify(oldWidget.parent) ?? providers != oldWidget.providers' Suggestion: change "@override bool updateShouldNotify(_InheritedProviders oldWidget) { return parent?.updateShouldNotify(oldWidget.parent) ?? false...
Don't give up, get active, continue to improve
For example: in the code below, how to use `counter` and `switcher` in one widget? Neither `Provide.value` or `StreamBuilder` seems to be fited for this. ``` var counter = Counter();...
For me, this is the easiest to use state management solution at the moment. Please continue to improve it.
Why is it not updated? I think it is very easy to use.
when I see Provide.dart ,In the 276 line , listenable = _getListenable(provider, value); I jump this method, Listenable _getListenable(Provider provider, dynamic value) =>provider is Listenable ? provider : value is...
In Redux I can use `navigatorKey.currentState.pushNamed('/someRoute');` to push a new page with out pass the context. How can I do the same thing in `flutter-provide`? example: I want to push...
Bloc has 'sink.addError(e)' to notify Widget,what if I want to get errors with Provide?
### Build log ```shell Compiler message: file:///Users/sunbreak/lib/flutter/.pub-cache/hosted/pub.flutter-io.cn/provide-1.0.1/lib/provide.dart:220:11: Error: Can't declare a member that conflicts with an inherited one. factory Provider.stream(Stream stream, {T initialValue}) => ^ file:///Users/sunbreak/lib/flutter/.pub-cache/hosted/pub.flutter-io.cn/provide-1.0.1/lib/provide.dart:192:13: Context: This is the...