Commit 8e8651a1 authored by Dio Maulana's avatar Dio Maulana

perbaikan card section

parent 8e4309f6
...@@ -96,23 +96,36 @@ class BodyWIdget extends StatelessWidget { ...@@ -96,23 +96,36 @@ class BodyWIdget extends StatelessWidget {
horizontal: AppPadding.p20, horizontal: AppPadding.p20,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround, // mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
GestureDetector( Expanded(
onTap: () { child: GestureDetector(
Navigator.pushNamed(context, Routes.reimburseRoute); onTap: () {
}, Navigator.pushNamed(
child: CardSectionHome( context, Routes.reimburseRoute);
title: "Reimburse", },
subtitle: "List Data Reimbursement", child: CardSectionHome(
logo: Assets.reimburseIcon, title: "Reimburse",
subtitle: "List Data Reimbursement",
logo: Assets.reimburseIcon,
),
), ),
), ),
CardSectionHome( SizedBox(
title: "History", width: AppMargin.m10,
subtitle: "Riwayat Perjalanan", ),
logo: Assets.historyIcon, Expanded(
child: GestureDetector(
onTap: () {
Navigator.pushNamed(context, Routes.historyRoute);
},
child: CardSectionHome(
title: "History",
subtitle: "Riwayat Penjualan",
logo: Assets.historyIcon,
),
),
), ),
], ],
), ),
...@@ -125,26 +138,33 @@ class BodyWIdget extends StatelessWidget { ...@@ -125,26 +138,33 @@ class BodyWIdget extends StatelessWidget {
horizontal: AppPadding.p20, horizontal: AppPadding.p20,
), ),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround, // mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
GestureDetector( Expanded(
onTap: () { child: GestureDetector(
Navigator.pushNamed( onTap: () {
context, Navigator.pushNamed(
Routes.profileRoute, context,
); Routes.profileRoute,
}, );
child: CardSectionHome( },
title: "Profile", child: CardSectionHome(
subtitle: title: "Profile",
"List Report Harian, mingguan dan Bulanan", subtitle:
logo: Assets.profileIcon, "List Report Harian, mingguan dan Bulanan",
logo: Assets.profileIcon,
),
), ),
), ),
CardSectionHome( SizedBox(
title: "Log out", width: AppMargin.m10,
logo: Assets.logoutIcon, ),
Expanded(
child: CardSectionHome(
title: "Log out",
logo: Assets.logoutIcon,
),
), ),
], ],
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment