Closed Marek00Malik closed 4 years ago
Quick description,
Until the provider is ready and fetched data from an external service it will just build an empty Widget.
When restaurantsData.dataNotLoaded
will return false, then the provider will be able to return data, and the buildRestaurantMarkers
will be able to build the list of ClusterItem
This list is then assigned to the ClusterManager
when building it.
_mapMarkers, set of Marker items, that are set by the ClusterManager's _updateMarkers
method.
Ok, I found the cause. I have been resetting the Manager but the google map has not been initialized anymore, so the manager didn't have mapController set.
Closing the issue :)
Ok, I found the cause. I have been resetting the Manager but the google map has not been initialized anymore, so the manager didn't have mapController set.
Closing the issue :)
Hello I have the same issue. How you did you fix it ?
My App uses the provider concept which fetches data. Now, if I understand the tool correctly, it's main idea is to update the stateful widgets state when updating/setting the GooglesMaps markers, which will refresh the widget and reload the ClusterItems with proper Markers. In a provider concept this is not advised and the whole widget works in a totally different way.
I'm trying to adapt your concept to handle the ClusterManager and build it with the data when the provider will return my items but this approach does not display any clusters on the screen, it only appears when I force a Hot Refresh.
Could you please help here?
This is my Widget: