Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hostusservices opened this issue Feb 24, 2022 · 1 comment

Comments

@hostusservices
Copy link

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

@Pradeep474832
Copy link

Change your seriesList variable type from:

final List<charts.Series> seriesList;

To:>>>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants