diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index 2ddd73e9..cc68c657 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -125,7 +125,7 @@ const Map localizedValues = { "welcome-to": {"en": "Welcome to", "ar": "مرحبا بك في"}, "patient-app": {"en": "Patient App", "ar": "تطبيق المراجعين"}, "welcome_text": {"en": "Red sea health Mobile Application", "ar": "البحر الأحمر الصحية لتطبيقات الهاتف"}, - "dr-sulaiman-text": {"en": "Red sea health", "ar": "د. سليمان صحة البحر الأحمر"}, + "dr-sulaiman-text": {"en": "Red sea health", "ar": "صحة البحر الأحمر"}, 'welcome_text2': {'en': 'Have you previously visited the hospitals or medical centers of Red sea health?', 'ar': 'هل قمت مسبقا بزيارة مستشفيات او مراكز البحر الأحمر الصحية الطبية ؟'}, 'yes': {'en': 'Yes', 'ar': 'نعم'}, 'no': {'en': 'No', 'ar': 'لا'}, @@ -503,7 +503,7 @@ const Map localizedValues = { "ar": "خدمة نتائج المختبر: هذه الخدمة تمكنك من الاطلاع على نتائج جميع الفحوصات المخبرية التي تمت في مجموعة صحة البحر الأحمر الطبية." }, "info-radiology": { - "en": "This service allows you to view the reports and photos of radiology in Al Red Sea Health as well as send the report by e-mail.", + "en": "This service allows you to view the reports and photos of radiology in Red Sea Health as well as send the report by e-mail.", "ar": "خدمة الاشعة: هذه الخدمة تمكنك من الاطلاع على تقارير وصور الاشعة التي تمت في مجموعة صحة البحر الأحمر الطبية وكذلك ارسال التقرير عن طريق الايميل." }, "noReviewsAvailable": {"en": "No Reviews Available", "ar": "لا يوجد تقييمات"}, diff --git a/lib/core/service/client/base_app_client.dart b/lib/core/service/client/base_app_client.dart index 957b3652..564d1af6 100644 --- a/lib/core/service/client/base_app_client.dart +++ b/lib/core/service/client/base_app_client.dart @@ -187,7 +187,7 @@ class BaseAppClient { // body['IdentificationNo'] = 1023854217; // body['MobileNo'] = "531940021"; //0560717232 - // body['PatientID'] = 10715; //4609100 + // body['PatientID'] = 11031; //4609100 // body['TokenID'] = "@dm!n"; // Patient ID: 3027574 @@ -207,7 +207,8 @@ class BaseAppClient { debugPrint(jsonBody); // } - if (await Utils.checkConnection(bypassConnectionCheck: bypassConnectionCheck)) { + // if (await Utils.checkConnection(bypassConnectionCheck: bypassConnectionCheck)) { + if (await Utils.checkConnection(bypassConnectionCheck: true)) { final response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers); final int statusCode = response.statusCode; if (statusCode < 200 || statusCode >= 400 || json == null) { diff --git a/lib/main.dart b/lib/main.dart index fa097ce6..b6ef84e3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,6 +19,7 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:localstorage/localstorage.dart'; import 'package:provider/provider.dart'; import 'config/size_config.dart'; @@ -40,6 +41,8 @@ void main() async { // return true; // }; + initLocalStorage(); + setupLocator(); HttpOverrides.global = MyHttpOverrides();