forked from kartikeysingh6/kartik_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
to_do_app.dart
74 lines (74 loc) · 2.04 KB
/
to_do_app.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () {
showModalBottomSheet(
context: context,
builder: (context) => MyB(),
isScrollControlled: false);
},
child: Icon(Icons.add),
),
backgroundColor: Colors.blueAccent,
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: EdgeInsets.only(top: 60.0, left: 30.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CircleAvatar(
child: Icon(
Icons.list,
size: 30.0,
),
radius: 30,
backgroundColor: Colors.white,
),
SizedBox(
height: 20.0,
),
Text(
"My to do",
style: TextStyle(
fontSize: 32,
fontWeight: FontWeight.w700,
color: Colors.white,
),
),
SizedBox(
height: 20.0,
),
Text(
"10 Tasks done!",
style: TextStyle(
fontSize: 20,
color: Colors.white,
),
),
],
),
),
SizedBox(
height: 20.0,
),
Expanded(
child: Container(
child: myListView(),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20.0),
topRight: Radius.circular(20.0),
),
),
),
)
],
),
);
}
}