Santos-Enoque/flutter-web-dashboard-template

bar chart errors can't be assigned to the parameter type 'List<Series<dynamic, String

Opened this issue · 1 comments

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*>>'

image

please check my code
https://github.com/hostusservices/flutter_dashboard.git

Change your seriesList variable type from:

final List<charts.Series> seriesList;

To:>>>

final List<charts.Series<dynamic, String>> seriesList;