Skip to content

Commit

Permalink
Removed precipitation data
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBananaPants committed Mar 12, 2021
1 parent f3c0f44 commit 3b76614
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BodyOfAppState extends State<BodyOfApp> {
String location = 'nog geen data';
String description = '';
var cloudCover = 0;
var neerslag = 0;
double neerslag = 0;
double temperatureValue = 0;
var temperature = 0;

Expand All @@ -85,7 +85,7 @@ class BodyOfAppState extends State<BodyOfApp> {
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) {
Expand Down Expand Up @@ -639,12 +639,12 @@ class BodyOfAppState extends State<BodyOfApp> {
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(
Expand Down

0 comments on commit 3b76614

Please sign in to comment.