1
1
import 'dart:ui' ;
2
2
3
3
import 'package:flutter/material.dart' ;
4
+ import 'package:flutter_meditation_app/wavy/wavy_app_bar.dart' ;
4
5
import 'package:flutter_meditation_app/wavy/wavy_bottom_navigation_bar.dart' ;
5
6
import 'package:flutter_meditation_app/wavy/wavy_image.dart' ;
6
7
import 'package:flutter_meditation_app/widgets/container_black.dart' ;
@@ -12,6 +13,7 @@ class MyApp extends StatelessWidget {
12
13
@override
13
14
Widget build (BuildContext context) {
14
15
return MaterialApp (
16
+ debugShowCheckedModeBanner: false ,
15
17
home: MyHomePage (),
16
18
);
17
19
}
@@ -98,6 +100,96 @@ class MyHomePage extends StatelessWidget {
98
100
),
99
101
),
100
102
),
103
+ Align (
104
+ alignment: Alignment .topCenter,
105
+ child: WavyAppBar (),
106
+ ),
107
+ Align (
108
+ alignment: Alignment .topCenter,
109
+ child: Padding (
110
+ padding: EdgeInsets .only (top: ScreenUtil .statusBarHeight + 50. w),
111
+ child: Container (
112
+ width: 128. w,
113
+ height: 128. w,
114
+ decoration: BoxDecoration (
115
+ shape: BoxShape .circle,
116
+ border: Border .all (
117
+ color: Colors .white,
118
+ width: 2 ,
119
+ ),
120
+ image: DecorationImage (
121
+ image: AssetImage (
122
+ 'assets/images/img_avatar.jpg' ,
123
+ ),
124
+ fit: BoxFit .cover,
125
+ ),
126
+ ),
127
+ ),
128
+ ),
129
+ ),
130
+ Align (
131
+ alignment: Alignment .topCenter,
132
+ child: Padding (
133
+ padding: EdgeInsets .only (top: ScreenUtil .statusBarHeight),
134
+ child: Container (
135
+ width: double .infinity,
136
+ height: 100. w,
137
+ child: Row (
138
+ crossAxisAlignment: CrossAxisAlignment .center,
139
+ mainAxisAlignment: MainAxisAlignment .spaceAround,
140
+ children: < Widget > [
141
+ Icon (
142
+ Icons .wifi_tethering,
143
+ color: Colors .white,
144
+ size: 48. w,
145
+ ),
146
+ Container (),
147
+ Stack (
148
+ children: [
149
+ Align (
150
+ alignment: Alignment .center,
151
+ child: Icon (
152
+ Icons .notifications,
153
+ color: Colors .white,
154
+ size: 48. w,
155
+ ),
156
+ ),
157
+ Align (
158
+ alignment: Alignment .center,
159
+ child: Padding (
160
+ padding: EdgeInsets .only (
161
+ left: 24. w,
162
+ bottom: 28. w,
163
+ ),
164
+ child: Container (
165
+ width: 32. w,
166
+ height: 32. w,
167
+ decoration: BoxDecoration (
168
+ color: Colors .black,
169
+ shape: BoxShape .circle,
170
+ ),
171
+ child: Center (
172
+ child: Padding (
173
+ padding: EdgeInsets .all (2 ),
174
+ child: Text (
175
+ '1' ,
176
+ style: TextStyle (
177
+ color: Colors .white,
178
+ fontSize: 20. sp,
179
+ ),
180
+ ),
181
+ ),
182
+ ),
183
+ ),
184
+ ),
185
+ ),
186
+ ],
187
+ ),
188
+ ],
189
+ ),
190
+ ),
191
+ ),
192
+ ),
101
193
],
102
194
),
103
195
),
@@ -139,12 +231,15 @@ class MyHomePage extends StatelessWidget {
139
231
child: Column (
140
232
children: < Widget > [
141
233
Expanded (
142
- child: Column (
143
- mainAxisAlignment: MainAxisAlignment .center,
144
- children: < Widget > [
145
- _buildWidgetTitle ('Meditation' ),
146
- _buildWidgetSubtitle ('Breathe, Sense, Feel' ),
147
- ],
234
+ child: Padding (
235
+ padding: EdgeInsets .only (top: ScreenUtil .statusBarHeight + 40. w),
236
+ child: Column (
237
+ mainAxisAlignment: MainAxisAlignment .center,
238
+ children: < Widget > [
239
+ _buildWidgetTitle ('Meditation' ),
240
+ _buildWidgetSubtitle ('Breathe, Sense, Feel' ),
241
+ ],
242
+ ),
148
243
),
149
244
),
150
245
Expanded (
@@ -158,7 +253,7 @@ class MyHomePage extends StatelessWidget {
158
253
),
159
254
Expanded (
160
255
child: Padding (
161
- padding: EdgeInsets .only (bottom: 200. w),
256
+ padding: EdgeInsets .only (bottom: ScreenUtil .bottomBarHeight + 200. w),
162
257
child: Column (
163
258
mainAxisAlignment: MainAxisAlignment .center,
164
259
children: < Widget > [
0 commit comments