update homepage

hmxc
小赖 5 years ago
parent 1cafd9dac2
commit a868b352f1

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

Loading…
Cancel
Save