From 79edef1d66fbaf6648de27e12062a4fcf6509f07 Mon Sep 17 00:00:00 2001 From: zaid_daoud Date: Tue, 13 Jun 2023 14:44:55 +0300 Subject: [PATCH] Update Gas Refill done --- .../widgets/gas_refill/gas_refill_create_details_item.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/widgets/gas_refill/gas_refill_create_details_item.dart b/lib/views/widgets/gas_refill/gas_refill_create_details_item.dart index 317f7c2b..2704143a 100644 --- a/lib/views/widgets/gas_refill/gas_refill_create_details_item.dart +++ b/lib/views/widgets/gas_refill/gas_refill_create_details_item.dart @@ -18,7 +18,7 @@ class GasRefillCreateDetailsItem extends StatelessWidget { Widget build(BuildContext context) { final subtitle = AppLocalization.of(context).subtitle; final startEditing = isUpdate && (model.selectedForEditing ?? false); - String deliveredQuantity = "0"; + String deliveredQuantity = "0.0"; return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -45,7 +45,7 @@ class GasRefillCreateDetailsItem extends StatelessWidget { if (startEditing) const SizedBox(height: 4), if (startEditing) ATextFormField( - initialValue: model.deliveredQuantity?.toString(), + initialValue: model.deliveredQuantity?.toString() ?? deliveredQuantity, textAlign: TextAlign.center, // controller: deliveredQuantityController, style: Theme.of(context).textTheme.subtitle1,