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

InteractiveChart crash on setState #12

Open
Gioxxy opened this issue Dec 20, 2021 · 1 comment
Open

InteractiveChart crash on setState #12

Gioxxy opened this issue Dec 20, 2021 · 1 comment

Comments

@Gioxxy
Copy link

Gioxxy commented Dec 20, 2021

Widget crash on final int end = (start + count).clamp(start, widget.candles.length); with Invalid argument(s): 432 in _InteractiveChartState build function when i set the state with new candles data, cause start > widget.candles.length

@Gioxxy
Copy link
Author

Gioxxy commented Dec 20, 2021

A workaround is adding a unique key:

InteractiveChart(
    key: UniqueKey(),

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

1 participant