Closed guenth39 closed 3 years ago
I got the same problem. Wanted to get the pressure, humidity and cloudiness, but it always returns null. The DateTime values (sunrise and sunset) and the areaName (string) works fine. Temperature is working fine. It really seams like original int values doesn't work.
Edit: Pull Request works fine, pls merge it soon.
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on: Not Platform related
NB: Bugs pertaining to old devices/OS versions will likely not be fixed.
Describe the bug
Values that come from the API as
int
and should be parsed in theWeather
class asdouble
are not matched. An example for this is_windDegree
orhumidity
, it is alwaysnull
.To Reproduce
Run example App and load weather.
Expected behavior
The
_unpackDouble
function should also acceptint
and parse it todouble
.Actual behavior
API Response:
Weather Object:
Screenshots
If applicable, add screenshots to help explain your problem.
Flutter doctor
Please run
flutter doctor
and add the output here.Additional information
Add any other info about the problem here.