From 5f99827b23a57a22f59e09ecff6788229c5589fb Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 13 Nov 2025 17:59:51 +0530 Subject: [PATCH] =?UTF-8?q?UI=20Enhancements=20in=20Finance=20Module=20?= =?UTF-8?q?=E2=80=93=20Payment=20Request=20&=20Expense=20Screens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widgets/expense/expense_main_components.dart | 16 +++++++++++++++- lib/view/finance/payment_request_screen.dart | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/helpers/widgets/expense/expense_main_components.dart b/lib/helpers/widgets/expense/expense_main_components.dart index 5218943..ae04ff6 100644 --- a/lib/helpers/widgets/expense/expense_main_components.dart +++ b/lib/helpers/widgets/expense/expense_main_components.dart @@ -343,7 +343,21 @@ class ExpenseList extends StatelessWidget { children: [ MyText.bodySmall(formattedDate, fontWeight: 500), const Spacer(), - MyText.bodySmall(expense.status.name, fontWeight: 500), + Container( + padding: const EdgeInsets.symmetric( + horizontal: 8, vertical: 4), + decoration: BoxDecoration( + color: Color(int.parse( + '0xff${expense.status.color.substring(1)}')) + .withOpacity(0.5), + borderRadius: BorderRadius.circular(5), + ), + child: MyText.bodySmall( + expense.status.name, + color: Colors.white, + fontWeight: 500, + ), + ), ], ), ], diff --git a/lib/view/finance/payment_request_screen.dart b/lib/view/finance/payment_request_screen.dart index 8d1e6bd..417bfd4 100644 --- a/lib/view/finance/payment_request_screen.dart +++ b/lib/view/finance/payment_request_screen.dart @@ -383,7 +383,8 @@ class _PaymentRequestMainScreenState extends State const EdgeInsets.symmetric(horizontal: 8, vertical: 4), decoration: BoxDecoration( color: Color(int.parse( - '0xff${item.expenseStatus.color.substring(1)}')), + '0xff${item.expenseStatus.color.substring(1)}')) + .withOpacity(0.5), borderRadius: BorderRadius.circular(5), ), child: MyText.bodySmall(