11import 'dart:ui' ;
22
33import 'package:flutter/material.dart' ;
4+ import 'package:flutter_meditation_app/wavy/wavy_app_bar.dart' ;
45import 'package:flutter_meditation_app/wavy/wavy_bottom_navigation_bar.dart' ;
56import 'package:flutter_meditation_app/wavy/wavy_image.dart' ;
67import 'package:flutter_meditation_app/widgets/container_black.dart' ;
@@ -12,6 +13,7 @@ class MyApp extends StatelessWidget {
1213 @override
1314 Widget build (BuildContext context) {
1415 return MaterialApp (
16+ debugShowCheckedModeBanner: false ,
1517 home: MyHomePage (),
1618 );
1719 }
@@ -98,6 +100,96 @@ class MyHomePage extends StatelessWidget {
98100 ),
99101 ),
100102 ),
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+ ),
101193 ],
102194 ),
103195 ),
@@ -139,12 +231,15 @@ class MyHomePage extends StatelessWidget {
139231 child: Column (
140232 children: < Widget > [
141233 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+ ),
148243 ),
149244 ),
150245 Expanded (
@@ -158,7 +253,7 @@ class MyHomePage extends StatelessWidget {
158253 ),
159254 Expanded (
160255 child: Padding (
161- padding: EdgeInsets .only (bottom: 200. w),
256+ padding: EdgeInsets .only (bottom: ScreenUtil .bottomBarHeight + 200. w),
162257 child: Column (
163258 mainAxisAlignment: MainAxisAlignment .center,
164259 children: < Widget > [
0 commit comments