From a0421fc57f6cc7de85db754ba002406513e4147f Mon Sep 17 00:00:00 2001 From: Moe <moe@chocola.dev> Date: Wed, 27 Apr 2022 13:31:18 +0700 Subject: [PATCH] Fix logistic layout --- lib/components/transaction_box.dart | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/components/transaction_box.dart b/lib/components/transaction_box.dart index cdd9de6..f32325f 100644 --- a/lib/components/transaction_box.dart +++ b/lib/components/transaction_box.dart @@ -78,14 +78,18 @@ class _TransactionBoxState extends State<TransactionBox> { ), Flexible( flex: 1, - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - const Text('Logistic', style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w600),), - const SizedBox(height: 5,), - Text(widget.logistic, style: const TextStyle(color: Colors.white),), - const SizedBox(height: 55,) - ], + child: Container( + margin: const EdgeInsets.only(left: 25.0, right: 25.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + const Text('Logistic', style: TextStyle(color: Colors.white, fontSize: 14, fontWeight: FontWeight.w600),), + const SizedBox(height: 5,), + Text(widget.logistic, style: const TextStyle(color: Colors.white),), + // const SizedBox(height: 55,) + ], + ), ), ) ],