From 0213264b7f637053720846944f6e35837b4faffb Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Wed, 27 Jan 2021 10:42:01 +0300 Subject: [PATCH] bug fixes --- lib/config/config.dart | 4 ++-- lib/pages/landing/landing_page.dart | 16 +++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index e909dad8..44ff52ed 100644 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -12,8 +12,8 @@ const EXA_CART_API_BASE_URL = 'https://mdlaboratories.com/exacartapi'; const PACKAGES_CATEGORIES = '/api/categories'; const PACKAGES_PRODUCTS = '/api/products'; -const BASE_URL = 'https://uat.hmgwebservices.com/'; -// const BASE_URL = 'https://hmgwebservices.com/'; +//const BASE_URL = 'https://uat.hmgwebservices.com/'; +const BASE_URL = 'https://hmgwebservices.com/'; //const BASE_PHARMACY_URL = 'http://swd-pharapp-01:7200/api/'; const BASE_PHARMACY_URL = 'https://uat.hmgwebservices.com/epharmacy/api/'; diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index d3f3959c..ae3daec4 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -504,11 +504,17 @@ class _LandingPageState extends State with WidgetsBindingObserver { builder: (BuildContext context) { return new Stack( children: [ - IconButton( - icon: Icon(Icons.menu), - color: Colors.white, - onPressed: () => Scaffold.of(context).openDrawer(), - ), + currentTab == 0 + ? IconButton( + icon: Icon(Icons.menu), + color: Colors.white, + onPressed: () => Scaffold.of(context).openDrawer(), + ) + : IconButton( + icon: Icon(Icons.arrow_back), + color: Colors.white, + onPressed: () => currentTab = 0, + ), notificationCount != '' ? new Positioned( right: projectViewModel.isArabic ? 35 : 0,