update homepage

hmxc
小赖 5 years ago
parent 1cafd9dac2
commit a868b352f1

@ -20,27 +20,31 @@ class HomePage extends StatefulWidget {
//bar //bar
Widget _menuButton(IconData iconData, String text, Widget page) { Widget _menuButton(IconData iconData, String text, Widget page) {
return AkuButton( return Expanded(
height: 75.w + 8.w + 33.w, child: AkuButton(
onPressed: () { radius: 8.w,
Get.to(page); height: 75.w + 8.w + 33.w,
}, onPressed: () {
child: Column( Get.to(page);
children: [ },
Icon( child: Column(
iconData, mainAxisAlignment: MainAxisAlignment.center,
size: 75.w, children: [
), Icon(
SizedBox(height: 8.w), iconData,
Text( size: 75.w,
text,
style: TextStyle(
color: Color(0xFF4A4B51),
fontSize: 24.sp,
fontWeight: FontWeight.bold,
), ),
) SizedBox(height: 8.w),
], Text(
text,
style: TextStyle(
color: Color(0xFF4A4B51),
fontSize: 24.sp,
fontWeight: FontWeight.bold,
),
)
],
),
), ),
); );
} }
@ -115,14 +119,14 @@ class _HomePageState extends State<HomePage> {
width: 16.w, width: 16.w,
), ),
Container( Container(
margin: EdgeInsets.only(top: 8.w, bottom: 8.w), margin: EdgeInsets.only(top: 8.w, bottom: 8.w),
width: 72.w, width: 72.w,
height: 72.w, height: 72.w,
// //
child: Builder(builder: (BuildContext context) { child: Builder(
return AkuRoundButton( builder: (BuildContext context) {
height: 72.w, return GestureDetector(
onPressed: () { onTap: () {
Scaffold.of(context).openDrawer(); Scaffold.of(context).openDrawer();
}, },
child: CircleAvatar( child: CircleAvatar(
@ -131,18 +135,20 @@ class _HomePageState extends State<HomePage> {
child: userProvider.isSigned ? null : null, child: userProvider.isSigned ? null : null,
), ),
); );
})), },
),
),
SizedBox(width: 16.w), SizedBox(width: 16.w),
Expanded( Expanded(
child: Container( child: Container(
margin: EdgeInsets.only(top: 8.w, bottom: 8.w), margin: EdgeInsets.only(top: 8.w, bottom: 8.w),
alignment: Alignment.center, alignment: Alignment.center,
height: 72.w, height: 72.w,
padding: EdgeInsets.only(left: 21.w),
child: AkuButton( child: AkuButton(
// //
color: Color(0xFFFFFFFF), color: Color(0xFFFFFFFF),
onPressed: () {}, onPressed: () {},
radius: 8.w,
child: Row(children: [ child: Row(children: [
Container( Container(
child: Column( child: Column(
@ -237,10 +243,12 @@ class _HomePageState extends State<HomePage> {
SizedBox(height: 16.w), SizedBox(height: 16.w),
Container( Container(
margin: EdgeInsets.only(left: 32.w, right: 32.w), margin: EdgeInsets.only(left: 32.w, right: 32.w),
padding: EdgeInsets.only(top: 24.w),
color: Color(0xFFFFFFFF),
width: double.infinity, width: double.infinity,
height: 163.w, height: 163.w,
decoration: BoxDecoration(
color: Color(0xFFFFFFFF),
borderRadius: BorderRadius.circular(8.w),
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [ children: [

Loading…
Cancel
Save