Skip to content

Commit 3b76614

Browse files
committed
Removed precipitation data
1 parent f3c0f44 commit 3b76614

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/main.dart

+8-8
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BodyOfAppState extends State<BodyOfApp> {
7070
String location = 'nog geen data';
7171
String description = '';
7272
var cloudCover = 0;
73-
var neerslag = 0;
73+
double neerslag = 0;
7474
double temperatureValue = 0;
7575
var temperature = 0;
7676

@@ -85,7 +85,7 @@ class BodyOfAppState extends State<BodyOfApp> {
8585
location = decodedData['list'][0]['name'];
8686
description = decodedData['list'][0]['weather'][0]['description'];
8787
cloudCover = decodedData['list'][0]['clouds']['all'];
88-
neerslag = decodedData['list'][0]['rain'];
88+
// neerslag = decodedData['list'][0]['rain']['1h'];
8989
temperatureValue = decodedData['list'][0]['main']['temp'];
9090

9191
if (neerslag == null) {
@@ -639,12 +639,12 @@ class BodyOfAppState extends State<BodyOfApp> {
639639
color: Theme.of(context).textTheme.bodyText1.color,
640640
),
641641
),
642-
Text(
643-
'Neerslag: $neerslag%',
644-
style: TextStyle(
645-
color: Theme.of(context).textTheme.bodyText1.color,
646-
),
647-
),
642+
// Text(
643+
// 'Neerslag: $neerslag%',
644+
// style: TextStyle(
645+
// color: Theme.of(context).textTheme.bodyText1.color,
646+
// ),
647+
// ),
648648
Padding(
649649
padding: const EdgeInsets.fromLTRB(0, 0, 0, 20),
650650
child: Text(

0 commit comments

Comments
 (0)