From a47e12edf888543d5d7a3ac53acb9953505c0c11 Mon Sep 17 00:00:00 2001 From: Hari-egov Date: Wed, 8 May 2024 12:00:14 +0530 Subject: [PATCH] Disabled checkbox from update expenses for paid bill --- .../lib/screeens/add_expense/expense_details.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart b/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart index 2ad06955a..db6f7e022 100644 --- a/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart +++ b/frontend/mgramseva/lib/screeens/add_expense/expense_details.dart @@ -489,8 +489,10 @@ class _ExpenseDetailsState extends State { height: 20, child: Checkbox( value: expensesDetailsProvider.expenditureDetails.isBillCancelled, - onChanged: expensesDetailsProvider - .onChangeOfCheckBox), + onChanged: + expensesDetailsProvider.expenditureDetails.allowEdit == true ? + expensesDetailsProvider + .onChangeOfCheckBox : null ) , ), Text( ApplicationLocalizations.of(context) @@ -498,6 +500,7 @@ class _ExpenseDetailsState extends State { .MARK_BILL_HAS_CANCELLED), style: TextStyle( fontSize: 19, + color: expensesDetailsProvider.expenditureDetails.allowEdit == true ? Colors.black: Colors.grey, fontWeight: FontWeight.normal)) ], ),