Add the heat index as well as some error handling.
This commit is contained in:
@ -97,6 +97,10 @@ class _MainAppState extends State<MainApp> {
|
||||
weather = "Please enter a location.";
|
||||
}
|
||||
|
||||
if (weather.toString().contains("Sorry!")) {
|
||||
return weather;
|
||||
}
|
||||
|
||||
if (weather != loadText) {
|
||||
if (debug) {
|
||||
debugPrint("DEBUG: Formatting text.");
|
||||
|
Reference in New Issue
Block a user