-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem using --preview-dart-2 #3
Comments
Thanks for reporting this @nitrico! The repository pre-dates dart 2 and I haven't tried it with At a quick glance the culprit is probably todoAppReducer's usage of |
Thank you, for the answer and the project :) Yes, that's what I've tried after that and now it works fine for iOS (both debug and release) and Android in debug mode but not in release. Weird... |
I am wanting to dive deeper into state management but I was unable to get this to work for me. I really like this project structure but I am a flutter/dart noob.
Wish I could say that was enough to help me get running w/Dart 2 . I tried changing the 'method signature' to something like ...
Which got me closer (starts to load on iPhone 6)... embarrassingly, I'm not sure if that is stupid but it still does not boot :(
... but ...
To my eyes, this app looks like a top notch implementation of a simple redux app, wish I could boot it 👍 |
The function 'todoAppReducer' has type '(TodoState, TodoAction) → TodoState' that isn't of expected type '(TodoState, dynamic) → TodoState'. This means its parameter or return type does not match what is expected. => I get this error. So how to resolve it bro???? |
#6 fix the problem. |
Trying to run this app with Dart 2 causes this
I tried to solve it by replacing
with
in
main.dart
. But then I get this error:Any idea on how to solve it?
The text was updated successfully, but these errors were encountered: