-
Notifications
You must be signed in to change notification settings - Fork 139
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
Issue since FLUTTER 2.0 upgrade #30
Comments
ancestorStateOfType has been depreciated. |
I'd forked the project and published the fix @locrianmark |
@GusRodrigues86 thanks. Gotta ditch this library asap, but your fork just saved me some time 🙌 |
for a null safety version https://pub.dev/packages/awesome_circular_chart |
@xjodoin I am unable to update the chart using your fork. This is what I am getting when I run
|
I don't think is related to the project. Did you try to set the explicitly the size https://stackoverflow.com/questions/64947936/flutter-errorfailed-assertion-line-1785-pos-12-hassize |
Set the mainAxisSize to minimum. |
Filename:
.../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_circular_chart-0.1.0/lib/src/animated_circular_chart.dart
The below line is giving error while building app:
line 121, 122:
final AnimatedCircularChartState result = context
.ancestorStateOfType(const TypeMatcher());
ERROR:
_The method 'ancestorStateOfType' isn't defined for the class 'BuildContext'.
Try correcting the name to the name of an existing method, or defining a method named 'ancestorStateOfType'.
context.ancestorStateOfType(const TypeMatcher());
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 20s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 21.9s
Exception: Gradle task assembleDebug failed with exit code 1_
The text was updated successfully, but these errors were encountered: