|
|
|
@ -574,6 +574,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
Utils.showErrorToast(model.error);
|
|
|
|
Utils.showErrorToast(model.error);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
/// we call the service again in order to get them oreder
|
|
|
|
|
|
|
|
await model.getPendingOrders();
|
|
|
|
AppToast.showSuccessToast(message: "Order Added");
|
|
|
|
AppToast.showSuccessToast(message: "Order Added");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} on PlatformException {
|
|
|
|
} on PlatformException {
|
|
|
|
|