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

perbaikan card section

parent 8e4309f6
...@@ -96,12 +96,14 @@ class BodyWIdget extends StatelessWidget { ...@@ -96,12 +96,14 @@ 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(
child: GestureDetector(
onTap: () { onTap: () {
Navigator.pushNamed(context, Routes.reimburseRoute); Navigator.pushNamed(
context, Routes.reimburseRoute);
}, },
child: CardSectionHome( child: CardSectionHome(
title: "Reimburse", title: "Reimburse",
...@@ -109,11 +111,22 @@ class BodyWIdget extends StatelessWidget { ...@@ -109,11 +111,22 @@ class BodyWIdget extends StatelessWidget {
logo: Assets.reimburseIcon, logo: Assets.reimburseIcon,
), ),
), ),
CardSectionHome( ),
SizedBox(
width: AppMargin.m10,
),
Expanded(
child: GestureDetector(
onTap: () {
Navigator.pushNamed(context, Routes.historyRoute);
},
child: CardSectionHome(
title: "History", title: "History",
subtitle: "Riwayat Perjalanan", subtitle: "Riwayat Penjualan",
logo: Assets.historyIcon, logo: Assets.historyIcon,
), ),
),
),
], ],
), ),
), ),
...@@ -125,10 +138,11 @@ class BodyWIdget extends StatelessWidget { ...@@ -125,10 +138,11 @@ 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(
child: GestureDetector(
onTap: () { onTap: () {
Navigator.pushNamed( Navigator.pushNamed(
context, context,
...@@ -142,10 +156,16 @@ class BodyWIdget extends StatelessWidget { ...@@ -142,10 +156,16 @@ class BodyWIdget extends StatelessWidget {
logo: Assets.profileIcon, logo: Assets.profileIcon,
), ),
), ),
CardSectionHome( ),
SizedBox(
width: AppMargin.m10,
),
Expanded(
child: CardSectionHome(
title: "Log out", title: "Log out",
logo: Assets.logoutIcon, 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