mzimmerm / flutter_charts

Charts Library for Flutter, written in Dart with Flutter.
Other
250 stars 42 forks source link

Error on flutter upgrade! #11

Closed jvmvl closed 3 years ago

jvmvl commented 6 years ago

Hi i got this error just after upgrading flutter

compiler message: file:///C:/Users/~/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_charts-0.1.7/lib/src/chart/layouters.dart:1169:34: Error: A value of type '(#lib1::StackableValuePoint) → dart.core::Null' can't be assigned to a variable of type '(dynamic) → void'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → void'.
compiler message:       column.allPoints().forEach((StackableValuePoint point) {
compiler message:                                  ^
compiler message: file:///C:/Users/~/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_charts-0.1.7/lib/src/chart/presenters.dart:84:24: Error: A value of type '(#lib1::StackableValuePoint) → dart.core::Null' can't be assigned to a variable of type '(dynamic) → void'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → void'.
compiler message:     fromPoints.forEach((StackableValuePoint point) {
compiler message:                        ^
ibrahimHeritch commented 5 years ago

I have the same error. Did you figure out the solution?

jvmvl commented 5 years ago

No, I used another plugin called charts