-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather_forcast_hourly.dart
54 lines (51 loc) · 1.28 KB
/
weather_forcast_hourly.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import 'package:flutter/material.dart';
class HourlyFourcastItem extends StatelessWidget {
final String time;
final String temperature;
final IconData icon;
const HourlyFourcastItem(
{super.key,
required this.time,
required this.temperature,
required this.icon});
@override
Widget build(BuildContext context) {
return SizedBox(
width: 100,
child: Card(
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
children: [
Text(
time,
style: const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 15,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
const SizedBox(
height: 5,
),
Icon(
icon,
size: 20,
),
const SizedBox(
height: 5,
),
Text(
temperature,
style: const TextStyle(
fontSize: 13,
),
),
],
),
),
),
);
}
}