We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
while using Navigator.push of loadingScreen
Error :'Do not use BuildContext of async gaps'
void getLocationData() async { Location location = Location(); await location.getCurrentLocation(); longitude = location.longitude; latitude = location.latitude;
NetworkHelper networkHelper = NetworkHelper( 'https://api.openweathermap.org/data/2.5/weather?lat=$latitude&lon=$longitude&appid=$apiKey'); var weatherData = await networkHelper.getData(); Navigator.push(context, MaterialPageRoute(builder: (context){ return LocationScreen(); }));
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
while using Navigator.push of loadingScreen
Error :'Do not use BuildContext of async gaps'
void getLocationData() async {
Location location = Location();
await location.getCurrentLocation();
longitude = location.longitude;
latitude = location.latitude;
}
The text was updated successfully, but these errors were encountered: