flutter_geofire icon indicating copy to clipboard operation
flutter_geofire copied to clipboard

How to use with 2 or more geofire event listeners in one app

Open gbrain2001 opened this issue 3 years ago • 2 comments

I am working on this geofire package and I have been trying to initialize a geofire, then stop that listener from one button. And then i have another button that initializes another geofire, then stop that listener. The problem is that it still reads the old locations and displays the markers on the map with those locations instead of the new ones. Could you explain to me the correct process how to stop a listener, delete the old markers and make them nullified before a new listener to display another set of markers on the map?

Thanks

gbrain2001 avatar Jul 13 '21 04:07 gbrain2001