From deb42d421550d54924dbbec8283533af8c561021 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Thu, 26 Nov 2020 13:04:03 +0200 Subject: [PATCH] ES-185:fix margin --- lib/widgets/order/order_info_card.dart | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/widgets/order/order_info_card.dart b/lib/widgets/order/order_info_card.dart index 0425ef0..51abee1 100644 --- a/lib/widgets/order/order_info_card.dart +++ b/lib/widgets/order/order_info_card.dart @@ -117,16 +117,22 @@ class OrderInfoCard extends StatelessWidget { Row( children: [ Container( - margin: EdgeInsets.only(bottom: 8, left: 20), - color: order.statusID == 2 ? Colors.green : Colors.red, - child: Padding( - padding: const EdgeInsets.all(5.0), - child: Text( - order.description, - style: TextStyle( - color: Colors.white, - fontWeight: FontWeight.w600, - fontSize: 15.0, + margin: EdgeInsets.only(bottom: 12, left: 10), + child: RoundedContainer( + // margin: EdgeInsets.only(bottom: 8, left: 20), + margin: 4, + showShadow: false, + backgroundColor: + order.statusID == 2 ? Colors.green : Colors.red, + child: Padding( + padding: const EdgeInsets.all(5.0), + child: Text( + order.description, + style: TextStyle( + color: Colors.white, + fontWeight: FontWeight.w600, + fontSize: 15.0, + ), ), ), ),