This commit is contained in:
Hamza-Ayed
2024-02-25 17:27:28 +03:00
parent b33e797f76
commit e2cdf18b59
9 changed files with 114 additions and 45 deletions

View File

@@ -27,14 +27,14 @@ class PaymentHistoryDriverPage extends StatelessWidget {
padding: const EdgeInsets.all(4),
child: Container(
decoration: BoxDecoration(
color: double.parse(list['balance']) < 0
color: double.parse(list['amount']) < 0
? AppColor.redColor.withOpacity(.4)
: AppColor.greenColor.withOpacity(.4)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
list['balance'],
list['amount'],
style: AppStyle.title,
),
Text(

View File

@@ -169,8 +169,10 @@ class WaletCaptain extends StatelessWidget {
child: MyTextForm(
controller: captainWalletController
.amountFromBudgetController,
label: 'insert amount'.tr,
hint: 'insert amount'.tr,
label:
'${'You have in account'.tr} ${captainWalletController.totalAmount}',
hint:
'${'You have in account'.tr} ${captainWalletController.totalAmount}',
type: TextInputType.number,
),
),