thekeenant / fcharts

:bar_chart: Create beautiful, responsive, animated charts using a simple and intuitive API.
https://pub.dartlang.org/packages/fcharts
MIT License
326 stars 46 forks source link

revision 6a3ff018b1 (2 weeks ago) • 2018-10-26 01:30:21 -0400 breaks fcharts 0.0.9 #22

Closed LiveRock closed 5 years ago

LiveRock commented 5 years ago

Flutter 0.10.1 • channel dev • https://github.com/flutter/flutter.git Framework • revision 6a3ff018b1 (2 weeks ago) • 2018-10-26 01:30:21 -0400

Compiler message: file:///dev/pub.dartlang.org/fcharts-0.0.9/lib/src/bar/data.dart:14:7: Error: Inferred type argument '#lib1::ChartDrawable<dynamic, #lib1::ChartTouch>' violates the corresponding type variable bound of 'ChartData' in the supertype 'ChartData' of class 'BarGraphData'. Try specifying type arguments explicitly so that they conform to the bounds. class BarGraphData implements ChartData { ^ file:///dev/flutter/.pub-cache/hosted/pub.dartlang.org/fcharts-0.0.9/lib/src/chart_data.dart:4:26: Context: Bound of this variable is violated. abstract class ChartData<T extends ChartDrawable<T, ChartTouch>> { ^ Compiler terminated unexpectedly.

Please help!

LiveRock commented 5 years ago

Downgrade Flutter to v0.10.1 resolve the issue but for long term, I think should should future version versions of Flutter. Thanks!

thekeenant commented 5 years ago

Thanks for reporting!

Fixed with f996a1ed6141ae37d19df17205600abe70977057