We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I’m changing the data but piechart still doesn’t change even i use the setState, how can i do it?
The text was updated successfully, but these errors were encountered:
you manage to solve that?? :(
Sorry, something went wrong.
no i couldn't :( no i started using fl_chart 0.11.0
I already added this method
@override void didUpdateWidget(PieChart oldWidget) { initData(); super.didUpdateWidget(oldWidget); }
Looks like this doesn't work. Will check it
For the time being one can add ValueKey to pie chart like this: key: ValueKey(key),
ValueKey
key: ValueKey(key),
and on changing data you can update the key like:
key
RaisedButton( onPressed: () { setState(() { key = key + 1; }); }, child: Text("Reload".toUpperCase()), ),
apgapg
No branches or pull requests
I’m changing the data but piechart still doesn’t change even i use the setState, how can i do it?
The text was updated successfully, but these errors were encountered: