I am trying to plot the user on a google map using the Geolocater plugin for flutter but whenever I try to select the screen with the map on it and get the users location via a method that is called on initState, it will not refresh the screen after I got the location. Here is the a simple example.
@override
void initState() {
_getCurrentPosition();
super.initState();
}
mainBody() {
if (position != null) {
return Map();
} else {
_getCurrentPosition();
return Loading();
}
}