Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Commit fbc1c31

Browse files
committed
Day 0: Add weather list
1 parent 6df3e93 commit fbc1c31

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/main.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ class MyApp extends StatelessWidget {
99

1010
@override
1111
Widget build(BuildContext context) {
12+
List<Map<String, dynamic>> weathers = [
13+
{'city': '深圳', 'temp': 22, 'high': 27, 'low': 18, 'weather': '多云'},
14+
{'city': '三亚', 'temp': 24, 'high': 25, 'low': 21, 'weather': '小雨'},
15+
{'city': '成都', 'temp': 18, 'high': 24, 'low': 14, 'weather': '多云'},
16+
{'city': '北京', 'temp': 10, 'high': 15, 'low': 6, 'weather': '晴'},
17+
{'city': '上海', 'temp': 12, 'high': 17, 'low': 8, 'weather': '晴'},
18+
{'city': '广州', 'temp': 20, 'high': 25, 'low': 16, 'weather': '多云'},
19+
{'city': '杭州', 'temp': 14, 'high': 19, 'low': 10, 'weather': '晴'},
20+
];
21+
1222
return MaterialApp(
1323
title: 'My Weather App',
1424
home: Scaffold(

0 commit comments

Comments
 (0)