|
|
|
|
@ -141,7 +141,16 @@ class _GasRefillDetailsPageState extends State<GasRefillDetailsPage> {
|
|
|
|
|
16.width,
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
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);
|
|
|
|
|
setState(() {});
|
|
|
|
|
// isDataUpdated = true;
|
|
|
|
|
// setState(() {});
|
|
|
|
|
}
|
|
|
|
|
// getVisitData();
|
|
|
|
|
},
|
|
|
|
|
label: context.translation.updateRequest,
|
|
|
|
|
|