SunPointed / MPFlutterChart

MPAndroidChart Flutter version
Apache License 2.0
305 stars 167 forks source link

Please update Example #179

Open krButani opened 1 year ago

krButani commented 1 year ago

Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

For solutions, see https://dart.dev/go/unsound-null-safety /G:/AAAInstallation/src/flutter/.pub-cache/hosted/pub.dartlang.org/mp_chart-0.3.1/lib/mp/chart/chart.dart:51:12: Error: The method 'then' isn't defined for the class 'FutureOr'. Try correcting the name to the name of an existing method, or defining a method named 'then'. .then((value) { ^^^^ /G:/AAAInstallation/src/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'.

FAILURE: Build failed with an exception.

BUILD FAILED in 1m 1s Exception: Gradle task assembleDebug failed with exit code 1

guchengxi1994 commented 1 year ago

@krButani just modify optimized_gesture_detector like this. image

But mp_chart and optimized_gesture_detector dont support null-safety, and there is a lot of work to do to migrate mp_chart into null-safety.

guchengxi1994 commented 1 year ago

@krButani https://github.com/entronad/graphic and https://github.com/imaNNeo/fl_chart are some other packages to draw charts