You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following _TypeError was thrown building Builder:
type 'int' is not a subtype of type 'double'
The relevant error-causing widget was:
MaterialApp file:///D:/Clients/experiments/Clima-Flutter/lib/main.dart:9:12
When the exception was thrown, this was the stack:
#0 _LocationScreenState.updateUI.<anonymous closure> (package:clima/screens/location_screen.dart:36:14)
#1 State.setState (package:flutter/src/widgets/framework.dart:1233:30)
#2 _LocationScreenState.updateUI (package:clima/screens/location_screen.dart:28:5)
#3 _LocationScreenState.initState (package:clima/screens/location_screen.dart:24:5)
#4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4640:58)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
Please help
The text was updated successfully, but these errors were encountered:
i find the issue, actually sometimes if weather value is not in double type this through error, seems dart is not that smart as other popular old languages. i don't know why google choose this garbage.
i change my variable type from double to "var" and this fixes the issue.
i find the issue, actually sometimes if weather value is not in double type this through error, seems dart is not that smart as other popular old languages. i don't know why google choose this garbage.
i change my variable type from double to "var" and this fixes the issue.
Please help
The text was updated successfully, but these errors were encountered: