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
setState not supported #4
Comments
I will try |
Just use the main.dart I included and you will understand what I mean. Maybe I am doing something wrong but I doubt. On setState after button push the markers array is populated but map does not refresh. Otherwise it seems like great plugin. |
Yes it is fixed. Thanks ! |
@MichalMisiaszek does it work for you now? I am currently having the same issue as you. |
The new overridden method |
ok i understand all, i will try to fix this issue.. the probles is that list and marker are by reference. so if you change marker's position for dart the list is not changed |
i dont know how to fix this at the moment.. however you can bypass it by recreating all the markers with the new position |
So I am recreating list in 'build' method on each set State. This works for me. |
@topnax @MichalMisiaszek Thanks |
this brings another problem with losing spiderfy state, see #150 |
I want to refresh map and groupings with dynamic list of markers.
The grouping works only first time, if list is empty then updated and setState called map does not refresh. This obviously works on regular map. I attach modified example main to show the problem.
main.dart.txt
The text was updated successfully, but these errors were encountered: