Can someone point me to some code to subscribe to continuous GPS updates?
Currently I am getting a position via a custom function every few seconds, but it is quite laggy. It does work, but I suspect it is far from the best way to do it.
Serge Middendorf mentioned the link below, and I can see that there is an option to subscribe to updates. I would also want to return these updates to the flow and a page variable.
Basically its a distance countdown as you approach a location. I want it to be as smooth as possible.
Any assistance gratefully received.
https://pub.dev/packages/geolocator