You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: No StoreProvider found. To fix, please try:
flutter: * Using Dart 2 (required) by using the --preview-dart-2 flag
flutter: * Wrapping your MaterialApp with the StoreProvider,
flutter: rather than an individual Route
flutter: * Providing full type information to your Store,
flutter: StoreProvider and StoreConnector<State, ViewModel>
flutter: * Ensure you are using consistent and complete imports.
flutter: E.g. always use `import 'package:my_app/app_state.dart';
I think this boilerplate project respects these requirements...
Have you got an idea?
Thanks a lot for your work,
Pierre
The text was updated successfully, but these errors were encountered:
Hey there -- sorry, on vacation at the moment. In this case, you need to provide more type information to the of method, or it infers your AppState class to be dynamic.
If you add the type info, all should be good, something like this:
Hey Brian, sorry for replying so late but I had an issue with my internet connection. Yes the problem is solved, thanks a lot for your reply while you are on vacation!
Hi,
I am using this boilerplate (https://github.com/FranPitri/flutter_redux_boilerplate) and when I try to access the store object to dispatch an action, for example
StoreProvider.of(context).dispatch(new UserLoginFailure("Ca marche pas"));
I get this error:
Have you got an idea?
Thanks a lot for your work,
Pierre
The text was updated successfully, but these errors were encountered: