diff --git a/lib/screens/location_screen.dart b/lib/screens/location_screen.dart index 16f1561..bf6950b 100644 --- a/lib/screens/location_screen.dart +++ b/lib/screens/location_screen.dart @@ -68,7 +68,9 @@ class _LocationScreenState extends State { FlatButton( onPressed: () async { var weatherData = await weather.getLocationWeather(); - updateUI(weatherData); + setState(() { + updateUI(weatherData); + }); }, child: Icon( Icons.near_me,