Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Disabled checkbox from update expenses for paid bill ( #789 )
Browse files Browse the repository at this point in the history
Disabled checkbox from update expenses for paid bill
  • Loading branch information
anilsingha-eGov authored May 9, 2024
2 parents 9c606c8 + a47e12e commit fe05fc1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,15 +489,18 @@ class _ExpenseDetailsState extends State<ExpenseDetails> {
height: 20,
child: Checkbox(
value: expensesDetailsProvider.expenditureDetails.isBillCancelled,
onChanged: expensesDetailsProvider
.onChangeOfCheckBox),
onChanged:
expensesDetailsProvider.expenditureDetails.allowEdit == true ?
expensesDetailsProvider
.onChangeOfCheckBox : null ) ,
),
Text(
ApplicationLocalizations.of(context)
.translate(i18.expense
.MARK_BILL_HAS_CANCELLED),
style: TextStyle(
fontSize: 19,
color: expensesDetailsProvider.expenditureDetails.allowEdit == true ? Colors.black: Colors.grey,
fontWeight: FontWeight.normal))
],
),
Expand Down

0 comments on commit fe05fc1

Please sign in to comment.