-
Notifications
You must be signed in to change notification settings - Fork 166
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
The method 'then' isn't defined for the class 'FutureOr<dynamic>' #176
Comments
I am facing the same error.
flutter doctor -v output
And my pubspec.yaml
|
#155 (comment) this solution solves the following error temporarily.
But the other one remains
|
@bmabir17 this seems to solve the other error for me.
|
same issue on flutter 2.8.1 |
This appears to be the result of a change with the
Didn't play around with the versioning too much, but the above seems to get the latest "compatible" versions. Still have to fix the cast to |
Try correcting the name to the name of an existing method, or defining a method named 'then'.
.then((value) {
^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/mp_chart-0.3.1/lib/mp/core/utils/painter_utils.dart:15:34: Error: The getter 'text' isn't defined for the class 'InlineSpan'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'text'.
var preText = painter.text.text;
The text was updated successfully, but these errors were encountered: