From 451bd8315ec98830ff31469f6d504518266c1bb5 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 15 Nov 2020 11:46:03 +0200 Subject: [PATCH] get the pending orders after insert new one --- lib/pages/dashboard/dashboard_screen.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/dashboard/dashboard_screen.dart b/lib/pages/dashboard/dashboard_screen.dart index 15dd8ad..0aa004f 100644 --- a/lib/pages/dashboard/dashboard_screen.dart +++ b/lib/pages/dashboard/dashboard_screen.dart @@ -574,6 +574,8 @@ class _DashboardScreenState extends State { if (model.state == ViewState.ErrorLocal) { Utils.showErrorToast(model.error); } else { + /// we call the service again in order to get them oreder + await model.getPendingOrders(); AppToast.showSuccessToast(message: "Order Added"); } } on PlatformException {