From 0a87036fcd40b013efc701d5fe1ecae7f1381da4 Mon Sep 17 00:00:00 2001 From: FaizHashmiCS22 Date: Thu, 26 Jun 2025 10:55:29 +0300 Subject: [PATCH] icon size updated --- lib/core/base/base_app_client.dart | 10 +++++----- lib/core/config/config.dart | 2 +- lib/core/response_models/widgets_config_model.dart | 2 ++ lib/home/priority_calls_components.dart | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/core/base/base_app_client.dart b/lib/core/base/base_app_client.dart index 9529f52..02c2337 100644 --- a/lib/core/base/base_app_client.dart +++ b/lib/core/base/base_app_client.dart @@ -10,7 +10,7 @@ class BaseAppClient { static post(String endPoint, {Map? body, Function(dynamic response, int statusCode)? onSuccess, Function(String error, int statusCode)? onFailure}) async { String url; - url = "$BASE_URL/api/PatientCall" + endPoint; + url = "$BASE_URL/api/PatientCall$endPoint"; // try { logger.i("URL : $url"); @@ -29,7 +29,7 @@ class BaseAppClient { onFailure(Utils.generateContactAdminMsg(), statusCode); } } else { - logger.i("Response: ${response.body.toString()}"); + log("Response: ${response.body.toString()}"); var parsed = json.decode(response.body.toString()); if (onSuccess != null) { onSuccess(parsed, statusCode); @@ -50,7 +50,7 @@ class BaseAppClient { static get(String endPoint, {Map? body, Function(dynamic response, int statusCode)? onSuccess, Function(String error, int statusCode)? onFailure}) async { String url; - url = "$BASE_URL/api/PatientCall" + endPoint; + url = "$BASE_URL/api/PatientCall$endPoint"; try { // String token = await sharedPref.getString(TOKEN); @@ -86,11 +86,11 @@ class BaseAppClient { //TODO change this fun String error = parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage']; if (parsed["ValidationErrors"] != null) { - error = parsed["ValidationErrors"]["StatusMessage"].toString() + "\n"; + error = "${parsed["ValidationErrors"]["StatusMessage"]}\n"; if (parsed["ValidationErrors"]["ValidationErrors"] != null && parsed["ValidationErrors"]["ValidationErrors"].length != 0) { for (var i = 0; i < parsed["ValidationErrors"]["ValidationErrors"].length; i++) { - error = error + parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0] + "\n"; + error = "${error + parsed["ValidationErrors"]["ValidationErrors"][i]["Messages"][0]}\n"; } } } diff --git a/lib/core/config/config.dart b/lib/core/config/config.dart index 3790482..f7597d6 100644 --- a/lib/core/config/config.dart +++ b/lib/core/config/config.dart @@ -4,8 +4,8 @@ const MAX_SMALL_SCREEN = 660; const ONLY_NUMBERS = "[0-9]"; const ONLY_LETTERS = "[a-zA-Z &'\"]"; const ONLY_DATE = "[0-9/]"; +// const BASE_URL = 'https://ms.hmg.com/nscapi2'; // Development DB const BASE_URL = 'https://ms.hmg.com/nscapi'; // UAT -// const BASE_URL = 'https://ms.hmg.com/nscapi2'; // UAT 2 Development DB // const BASE_URL = 'https://qline.hmg.com'; // LIVE const apiKey = 'EE17D21C7943485D9780223CCE55DCE5'; // UAT // const BASE_URL = 'http://10.200.204.11:2222/Services/Nurses.svc/REST'; diff --git a/lib/core/response_models/widgets_config_model.dart b/lib/core/response_models/widgets_config_model.dart index ef93c27..30e0f73 100644 --- a/lib/core/response_models/widgets_config_model.dart +++ b/lib/core/response_models/widgets_config_model.dart @@ -9,6 +9,8 @@ class WidgetsConfigModel { double? projectLongitude; int? cityKey; + + WidgetsConfigModel({ this.waitingAreaID, this.waitingAreaName, diff --git a/lib/home/priority_calls_components.dart b/lib/home/priority_calls_components.dart index 4125b5d..bd7fe60 100644 --- a/lib/home/priority_calls_components.dart +++ b/lib/home/priority_calls_components.dart @@ -190,7 +190,7 @@ Widget priorityTicketsWithSideList({required List tickets, r log("appProvider.currentScreenRotation: ${appProvider.currentScreenRotation}"); final List children = [ - Expanded(flex: 7, child: PriorityTickets(callConfig: callConfig, tickets: priorityTickets)), + Expanded(flex: 8, child: PriorityTickets(callConfig: callConfig, tickets: priorityTickets)), Container(color: Colors.grey.withOpacity(0.1), width: 10, margin: const EdgeInsets.symmetric(horizontal: 10, vertical: 50)), Expanded( flex: 6, @@ -311,7 +311,7 @@ Widget priorityTicketsWithSideList({required List tickets, r Padding( padding: const EdgeInsets.only(bottom: 10), child: SizedBox( - width: SizeConfig.getWidthMultiplier() * 3.5, + width: SizeConfig.getWidthMultiplier() * 2.5, child: itm.getCallType().icon(SizeConfig.getHeightMultiplier() * 2.5), ), ),