master
haroon amjad 2 weeks ago
parent 3501fe42e9
commit 4521bd75c9

@ -125,7 +125,7 @@ const Map localizedValues = {
"welcome-to": {"en": "Welcome to", "ar": "مرحبا بك في"}, "welcome-to": {"en": "Welcome to", "ar": "مرحبا بك في"},
"patient-app": {"en": "Patient App", "ar": "تطبيق المراجعين"}, "patient-app": {"en": "Patient App", "ar": "تطبيق المراجعين"},
"welcome_text": {"en": "Red sea health Mobile Application", "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': 'هل قمت مسبقا بزيارة مستشفيات او مراكز البحر الأحمر الصحية الطبية ؟'}, 'welcome_text2': {'en': 'Have you previously visited the hospitals or medical centers of Red sea health?', 'ar': 'هل قمت مسبقا بزيارة مستشفيات او مراكز البحر الأحمر الصحية الطبية ؟'},
'yes': {'en': 'Yes', 'ar': 'نعم'}, 'yes': {'en': 'Yes', 'ar': 'نعم'},
'no': {'en': 'No', 'ar': 'لا'}, 'no': {'en': 'No', 'ar': 'لا'},
@ -503,7 +503,7 @@ const Map localizedValues = {
"ar": "خدمة نتائج المختبر: هذه الخدمة تمكنك من الاطلاع على نتائج جميع الفحوصات المخبرية التي تمت في مجموعة صحة البحر الأحمر الطبية." "ar": "خدمة نتائج المختبر: هذه الخدمة تمكنك من الاطلاع على نتائج جميع الفحوصات المخبرية التي تمت في مجموعة صحة البحر الأحمر الطبية."
}, },
"info-radiology": { "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": "خدمة الاشعة: هذه الخدمة تمكنك من الاطلاع على تقارير وصور الاشعة التي تمت في مجموعة صحة البحر الأحمر الطبية وكذلك ارسال التقرير عن طريق الايميل." "ar": "خدمة الاشعة: هذه الخدمة تمكنك من الاطلاع على تقارير وصور الاشعة التي تمت في مجموعة صحة البحر الأحمر الطبية وكذلك ارسال التقرير عن طريق الايميل."
}, },
"noReviewsAvailable": {"en": "No Reviews Available", "ar": "لا يوجد تقييمات"}, "noReviewsAvailable": {"en": "No Reviews Available", "ar": "لا يوجد تقييمات"},

@ -187,7 +187,7 @@ class BaseAppClient {
// body['IdentificationNo'] = 1023854217; // body['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232 // body['MobileNo'] = "531940021"; //0560717232
// body['PatientID'] = 10715; //4609100 // body['PatientID'] = 11031; //4609100
// body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
// Patient ID: 3027574 // Patient ID: 3027574
@ -207,7 +207,8 @@ class BaseAppClient {
debugPrint(jsonBody); 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 response = await http.post(Uri.parse(url.trim()), body: json.encode(body), headers: headers);
final int statusCode = response.statusCode; final int statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 400 || json == null) { if (statusCode < 200 || statusCode >= 400 || json == null) {

@ -19,6 +19,7 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:localstorage/localstorage.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
import 'config/size_config.dart'; import 'config/size_config.dart';
@ -40,6 +41,8 @@ void main() async {
// return true; // return true;
// }; // };
initLocalStorage();
setupLocator(); setupLocator();
HttpOverrides.global = MyHttpOverrides(); HttpOverrides.global = MyHttpOverrides();

Loading…
Cancel
Save