diff --git a/lib/main.dart b/lib/main.dart index 0fda8c0..b51d879 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -70,7 +70,7 @@ class BodyOfAppState extends State { String location = 'nog geen data'; String description = ''; var cloudCover = 0; - var neerslag = 0; + double neerslag = 0; double temperatureValue = 0; var temperature = 0; @@ -85,7 +85,7 @@ class BodyOfAppState extends State { location = decodedData['list'][0]['name']; description = decodedData['list'][0]['weather'][0]['description']; cloudCover = decodedData['list'][0]['clouds']['all']; - neerslag = decodedData['list'][0]['rain']; + // neerslag = decodedData['list'][0]['rain']['1h']; temperatureValue = decodedData['list'][0]['main']['temp']; if (neerslag == null) { @@ -639,12 +639,12 @@ class BodyOfAppState extends State { color: Theme.of(context).textTheme.bodyText1.color, ), ), - Text( - 'Neerslag: $neerslag%', - style: TextStyle( - color: Theme.of(context).textTheme.bodyText1.color, - ), - ), + // Text( + // 'Neerslag: $neerslag%', + // style: TextStyle( + // color: Theme.of(context).textTheme.bodyText1.color, + // ), + // ), Padding( padding: const EdgeInsets.fromLTRB(0, 0, 0, 20), child: Text(