bar chart errors can't be assigned to the parameter type 'List<Series<dynamic, String
Opened this issue · 1 comments
hostusservices commented
Please help me with the bar chart error
when copy the bar chart code serieslist was showing error says
List<Series<dynamic, dynamic>> seriesList
package:flutter_application_1/widgets/bar_chart.dart
Unnecessary new keyword.dartunnecessary_new
The argument type 'List<Series<dynamic, dynamic>>' can't be assigned to the parameter type 'List<Series<dynamic, String*>>'
please check my code
https://github.com/hostusservices/flutter_dashboard.git
Pradeep474832 commented
Change your seriesList variable type from:
final List<charts.Series> seriesList;
To:>>>
final List<charts.Series<dynamic, String>> seriesList;