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
The text was updated successfully, but these errors were encountered:
You should try adding a future.delayed function which takes to the location screen after a delay and pass null as values.
This might help.
void getLocationData() async { var weatherData; Future.delayed(Duration(seconds: 15), () { if (weatherData == null) { Navigator.push( context, MaterialPageRoute( builder: (ctx) => LocationScreen(weatherData: null))); } }); weatherData = await WeatherModel().getLocationWeather(); Navigator.push( context, MaterialPageRoute( builder: (ctx) => LocationScreen(weatherData: weatherData))); }
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: