diff --git a/lib/modules/tm_module/gas_refill/gas_refill_details.dart b/lib/modules/tm_module/gas_refill/gas_refill_details.dart index 5e4e129a..1fd94c71 100644 --- a/lib/modules/tm_module/gas_refill/gas_refill_details.dart +++ b/lib/modules/tm_module/gas_refill/gas_refill_details.dart @@ -76,7 +76,7 @@ class _GasRefillDetailsPageState extends State { requestId: widget.model.id!.toInt(), assigneeEmployeeNumber: _gasRefillModel.assignedEmployee?.employeeId!, myLoginUserID: context.userProvider.user!.employeeId ?? context.userProvider.user!.username!, - contactEmployeeINumber: _gasRefillModel.gasRefillContactPerson!.first.employeeCode!, + contactEmployeeINumber: _gasRefillModel.gasRefillContactPerson!.first.employeeCode!, ); }) ], @@ -141,15 +141,11 @@ class _GasRefillDetailsPageState extends State { 16.width, AppFilledButton( onPressed: () async { - bool? isRefresh = await Navigator.of(context).push(MaterialPageRoute(builder: (_) => UpdateGasRefillRequest(gasRefillModel: _model)));; + bool? isRefresh = await Navigator.of(context).push(MaterialPageRoute(builder: (_) => UpdateGasRefillRequest(gasRefillModel: _model))); + ; if (isRefresh != null && isRefresh) { - Utils.showLoading(context); - await gasRefillProvider.getGasRefillObjectById(widget.model.id!); - isDataUpdated = true; - Utils.hideLoading(context); + isDataUpdated = false; setState(() {}); - // isDataUpdated = true; - // setState(() {}); } // getVisitData(); },