From e3dbfe8dcb4072bea787d15a1a2fa71f57413bf5 Mon Sep 17 00:00:00 2001 From: hussam al-habibeh Date: Wed, 26 Aug 2020 16:33:50 +0300 Subject: [PATCH] code reformat --- .../model/pending_orders/pending_orders_res_model.dart | 3 +++ lib/core/service/orders_service.dart | 1 + lib/pages/dashboard/dashboard_screen.dart | 7 ++++--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/core/model/pending_orders/pending_orders_res_model.dart b/lib/core/model/pending_orders/pending_orders_res_model.dart index b6c32b5..a5c8420 100644 --- a/lib/core/model/pending_orders/pending_orders_res_model.dart +++ b/lib/core/model/pending_orders/pending_orders_res_model.dart @@ -142,9 +142,12 @@ class ItemsQuantitiesList { Map toJson() { final Map data = new Map(); + data['ItemName'] = this.itemName; data['ProductID'] = this.productID; + data['Quantity'] = this.quantity; + return data; } } diff --git a/lib/core/service/orders_service.dart b/lib/core/service/orders_service.dart index 3f740bf..fbc4184 100644 --- a/lib/core/service/orders_service.dart +++ b/lib/core/service/orders_service.dart @@ -35,6 +35,7 @@ class OrdersService extends BaseService { } catch (e) { hasError = true; super.error = error; + throw e; } } diff --git a/lib/pages/dashboard/dashboard_screen.dart b/lib/pages/dashboard/dashboard_screen.dart index a48d362..0909123 100644 --- a/lib/pages/dashboard/dashboard_screen.dart +++ b/lib/pages/dashboard/dashboard_screen.dart @@ -389,9 +389,10 @@ class _DashboardScreenState extends State { Text( model.orders[index].mobileNumber, style: TextStyle( - color: Color(0xff30B7B9), - fontWeight: FontWeight.w600, - fontSize: 15.0), + color: Color(0xff30B7B9), + fontWeight: FontWeight.w600, + fontSize: 15.0, + ), ), Expanded( child: Text(