From 99bf56f596941ea85a4da531622075eda1ba2719 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 23 May 2022 08:53:09 +0700 Subject: [PATCH] Fix image not responsive in payment page --- lib/components/payment_body.dart | 36 +++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/lib/components/payment_body.dart b/lib/components/payment_body.dart index 797532e..fbf8894 100644 --- a/lib/components/payment_body.dart +++ b/lib/components/payment_body.dart @@ -38,20 +38,32 @@ class _PaymentBodyState extends State { child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - Image.asset( - 'assets/images/bca.webp', - cacheHeight: 40, - cacheWidth: 100, + Flexible( + flex: 1, + child: Padding( + padding: const EdgeInsets.only(left: 20, right: 20), + child: Image.asset( + 'assets/images/bca.webp', + ), + ), ), - Image.asset( - 'assets/images/bni.webp', - cacheHeight: 40, - cacheWidth: 100, + Flexible( + flex: 1, + child: Padding( + padding: const EdgeInsets.only(left: 20, right: 20), + child: Image.asset( + 'assets/images/bni.webp', + ), + ), ), - Image.asset( - 'assets/images/bri.webp', - cacheHeight: 40, - cacheWidth: 100, + Flexible( + flex: 1, + child: Padding( + padding: const EdgeInsets.only(left: 20, right: 20), + child: Image.asset( + 'assets/images/bri.webp' + ), + ), ), ], ),