From d20a45208a9f0c71bb5b0d7dbb62ef1d85e2b11a Mon Sep 17 00:00:00 2001 From: Zohaib Iqbal Kambrani <> Date: Sun, 30 Oct 2022 14:58:33 +0300 Subject: [PATCH] no message --- lib/core/config/config.dart | 3 ++- lib/home/home_screen.dart | 12 ++++++------ lib/home/home_screen_components.dart | 5 ----- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/lib/core/config/config.dart b/lib/core/config/config.dart index 7f1dc2c..3114524 100644 --- a/lib/core/config/config.dart +++ b/lib/core/config/config.dart @@ -5,7 +5,8 @@ const ONLY_NUMBERS = "[0-9]"; const ONLY_LETTERS = "[a-zA-Z &'\"]"; const ONLY_DATE = "[0-9/]"; const BASE_URL_LIVE_CARE = 'https://livecare.hmg.com/'; -const BASE_URL = 'http://10.200.204.11:2222/Services/Nurses.svc/REST'; +const BASE_URL = 'https://uat.hmgwebservices.com/services/Nurses.svc/REST'; // UAT +// const BASE_URL = 'http://10.200.204.11:2222/Services/Nurses.svc/REST'; // const BASE_URL = 'https://hmgwebservices.com/'; diff --git a/lib/home/home_screen.dart b/lib/home/home_screen.dart index ea3f400..f071538 100644 --- a/lib/home/home_screen.dart +++ b/lib/home/home_screen.dart @@ -159,12 +159,12 @@ class _MyHomePageState extends State { updateTickets(){ - List _ticketsToUpdate = waitings.where((t) => t.call_updated == false); - API.Call_UpdateNotIsQueueRecordByIDAsync(DEVICE_IP, tickets: _ticketsToUpdate, onSuccess: (tickets_updated){ - print("[${tickets_updated.length}] Tickets Updated: $tickets_updated"); - }, onFailure: (e){ - - }); + // List _ticketsToUpdate = waitings.where((t) => t.call_updated == false); + // API.Call_UpdateNotIsQueueRecordByIDAsync(DEVICE_IP, tickets: _ticketsToUpdate, onSuccess: (tickets_updated){ + // print("[${tickets_updated.length}] Tickets Updated: $tickets_updated"); + // }, onFailure: (e){ + // + // }); } diff --git a/lib/home/home_screen_components.dart b/lib/home/home_screen_components.dart index 01a118c..3e697e6 100644 --- a/lib/home/home_screen_components.dart +++ b/lib/home/home_screen_components.dart @@ -46,11 +46,6 @@ Widget priorityTicketsWithSideList(List tickets){ itemBuilder: (ctx,idx){ final itm = otherTickets[idx]; - final isDoctor = itm.callType == 1; - - final icon = "assets/images/${isDoctor ? 'doctoricon' : 'nurseicon'}.svg"; - final title = "Please Visit ${isDoctor ? 'Doctor' : 'Nurse'}"; - final color = isDoctor ? AppGlobal.appRedColor : AppGlobal.appGreenColor; return ListTile( contentPadding: const EdgeInsets.all(8),