HMG Service layout

merge-update-with-lab-changes
hussam al-habibeh 6 years ago
parent 6caf7290be
commit 3c5adc0a1d

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -227,7 +227,10 @@ const Map<String, Map<String, String>> localizedValues = {
'ar': 'مسح فوق رمز الاستجابة السريعة للتحقق في الجهاز في المستشفى' 'ar': 'مسح فوق رمز الاستجابة السريعة للتحقق في الجهاز في المستشفى'
}, },
"sendEmail": {"en": "Send Email", "ar": "ارسال نسخة"}, "sendEmail": {"en": "Send Email", "ar": "ارسال نسخة"},
"EmailSentSuccessfully": {"en": "Email Sent Successfully", "ar": "تم إرسال البريد الإلكتروني بنجاح"}, "EmailSentSuccessfully": {
"en": "Email Sent Successfully",
"ar": "تم إرسال البريد الإلكتروني بنجاح"
},
"close": {"en": "Close", "ar": "مغلق"}, "close": {"en": "Close", "ar": "مغلق"},
"booked": {"en": "Booked", "ar": "محجوز"}, "booked": {"en": "Booked", "ar": "محجوز"},
"confirmed": {"en": "Confirmed", "ar": "مؤكد"}, "confirmed": {"en": "Confirmed", "ar": "مؤكد"},
@ -367,22 +370,32 @@ const Map<String, Map<String, String>> localizedValues = {
"consultation": {"en": "Consultation", "ar": "استشارة"}, "consultation": {"en": "Consultation", "ar": "استشارة"},
"logs": {"en": "Logs", "ar": "السجلات"}, "logs": {"en": "Logs", "ar": "السجلات"},
"textToSpeech": {"en": "How May I Help You?", "ar": "كيف يمكنني مساعدتك؟"}, "textToSpeech": {"en": "How May I Help You?", "ar": "كيف يمكنني مساعدتك؟"},
"locationDialogMessage": {"en": "Allow the HMG app to access your location will assist you in showing the hospitals according to the nearest to you.", "ar": "السماح لتطبيق مجموعة الحبيب الطبية بالوصول إلى موقعك سيساعدك في إظهار المستشفيات وفقًا للأقرب إليك."}, "locationDialogMessage": {
"parking":{"en":"Parking","ar":"مواقف"}, "en":
"alhabiServices":{"en":"HMG Service","ar":"خدمات الحبيب"}, "Allow the HMG app to access your location will assist you in showing the hospitals according to the nearest to you.",
"parkingTitle":{"en":"Car service, car service, service to save parking information, return to it later, 1- By clicking on (Read the code), save the parking data. 2- By clicking on the button (view my car park), it shows you the cars location in Google Maps. 3- Read another position by pressing the Clear Position Data button.","ar":" خدمة المواقف، تتيح هذه الخدمة للمستخدم معلومات عن موقف السيارة ليسهل عليه العودة لها لاحقاً ، 1- بالضغط على زر(قراءة الكود) تستطيع حفظ البيانات الخاصة بالموقف. 2-بالضغط على زر(عرض موقف سيارتي) يعرض لك موقع السيارة في خرائط قوقل. 3- لإعادة قراءة موقف آخرعن طريق الضغط على زر(مسح بيانات الموقف). "}, "ar":
"readBarcode":{"en":"Read Barcode","ar":"قراءة الكود"}, "السماح لتطبيق مجموعة الحبيب الطبية بالوصول إلى موقعك سيساعدك في إظهار المستشفيات وفقًا للأقرب إليك."
"showMyPark":{"en":"Show My Park","ar":"عرض بارك"}, },
"clearMyData":{"en":"clear My Data","ar":"امسح البيانات"}, "parking": {"en": "Parking", "ar": "مواقف"},
"floor":{"en":"Floor:","ar":"الطابق"}, "alhabiServices": {"en": "HMG Service", "ar": "خدمات الحبيب"},
"gate":{"en":"Gate:","ar":"بوابة"}, "parkingTitle": {
"building":{"en":"Building:","ar":"المبنى"}, "en":
"branch":{"en":"Branch:","ar":"الفرع"}, "Car service, car service, service to save parking information, return to it later, 1- By clicking on (Read the code), save the parking data. 2- By clicking on the button (view my car park), it shows you the cars location in Google Maps. 3- Read another position by pressing the Clear Position Data button.",
"emergencyServices":{"en":"Emergency Services:","ar":"خدمات الطوارئ"}, "ar":
"nearester":{"en":"Nearest ER:","ar":"أقرب طوارى"}, " خدمة المواقف، تتيح هذه الخدمة للمستخدم معلومات عن موقف السيارة ليسهل عليه العودة لها لاحقاً ، 1- بالضغط على زر(قراءة الكود) تستطيع حفظ البيانات الخاصة بالموقف. 2-بالضغط على زر(عرض موقف سيارتي) يعرض لك موقع السيارة في خرائط قوقل. 3- لإعادة قراءة موقف آخرعن طريق الضغط على زر(مسح بيانات الموقف). "
"locationa":{"en":"location:","ar":"الموقع"}, },
"ambulancerequest":{"en":"Ambulance :","ar":"طلب نقل "}, "readBarcode": {"en": "Read Barcode", "ar": "قراءة الكود"},
"requestA":{"en":"Request:","ar":"اسعاف"}, "showMyPark": {"en": "Show My Park", "ar": "عرض بارك"},
"clearMyData": {"en": "clear My Data", "ar": "امسح البيانات"},
"floor": {"en": "Floor:", "ar": "الطابق"},
"gate": {"en": "Gate:", "ar": "بوابة"},
"building": {"en": "Building:", "ar": "المبنى"},
"branch": {"en": "Branch:", "ar": "الفرع"},
"emergencyServices": {"en": "Emergency Services:", "ar": "خدمات الطوارئ"},
"nearester": {"en": "Nearest ER:", "ar": "أقرب طوارى"},
"locationa": {"en": "location:", "ar": "الموقع"},
"ambulancerequest": {"en": "Ambulance :", "ar": "طلب نقل "},
"requestA": {"en": "Request:", "ar": "اسعاف"},
"MyAppointments": {"en": "My Appointments", "ar": "مواعيدي"}, "MyAppointments": {"en": "My Appointments", "ar": "مواعيدي"},
"NoBookedAppointments": { "NoBookedAppointments": {
"en": "No Booked Appointments", "en": "No Booked Appointments",
@ -450,43 +463,75 @@ const Map<String, Map<String, String>> localizedValues = {
"OrderDetails": {"en": "Order Details", "ar": "تفاصيل الطلب"}, "OrderDetails": {"en": "Order Details", "ar": "تفاصيل الطلب"},
"VitalSign": {"en": "Vital Sign", "ar": "العلامة حيوية"}, "VitalSign": {"en": "Vital Sign", "ar": "العلامة حيوية"},
"MonthlyReports": {"en": "Monthly Reports", "ar": "تقارير شهرية"}, "MonthlyReports": {"en": "Monthly Reports", "ar": "تقارير شهرية"},
"km":{"en":"KMs:","ar":"كم"}, "km": {"en": "KMs:", "ar": "كم"},
"PatientHealthSummaryReport":{"en":"Patient Health Summary Report","ar":" ملخص التقارير الشهرية"}, "PatientHealthSummaryReport": {
"ToViewTheTermsAndConditions":{"en":"To View The Terms And Conditions Report","ar":" عرض الشروط والأحكام "}, "en": "Patient Health Summary Report",
"ClickHere":{"en":"Click here","ar":"أنقر هنا"}, "ar": " ملخص التقارير الشهرية"
"IAgreeToTheTermsAndConditions":{"en":"I agree to the terms and conditions ","ar":"أوافق على الشروط والاحكام "}, },
"IAgreeToTheTermsAndConditionsSubtitle":{"en":"I agree to the terms and conditions ","ar":"هذا ملخص التقرير الصحي الشهري و الذي يسرد المؤشرات الصحية و نتائج التحاليل لأخر الزيارات. يرجى ملاحظة أن هذا التقرير هو تقرير يتم ارساله بشكل آلي من النظام و لا يعتبر رسمي و لا تؤخذ عليه أي قرارات طبية"}, "ToViewTheTermsAndConditions": {
"Save":{"en":"Save","ar":"حفظ "}, "en": "To View The Terms And Conditions Report",
"UserAgreement":{"en":"User Agreement","ar":"اتفاقية الخصوصية "}, "ar": " عرض الشروط والأحكام "
"UpdateSuccessfully":{"en":"Update Successfully","ar":"تم التحديث بنجاح"}, },
"CHECK_VACCINE_AVAILABILITY":{"en":"CHECK VACCINE AVAILABILITY","ar":"تحقق من توافر اللقاح"}, "ClickHere": {"en": "Click here", "ar": "أنقر هنا"},
"MyVaccinesAvailability":{"en":"MyVaccinesAvailability","ar":"توفر لقاحي"}, "IAgreeToTheTermsAndConditions": {
"PaymentService":{"en":"Payment Service","ar":"خدمة المدفوعات"}, "en": "I agree to the terms and conditions ",
"PaymentOnline":{"en":"Service","ar":"الالكتروني"}, "ar": "أوافق على الشروط والاحكام "
"OnlineCheckIn":{"en":"Online Check-In","ar":"مدفوعات معلقة"}, },
"MyBalances":{"en":"My Balances","ar":"رصيدي"}, "IAgreeToTheTermsAndConditionsSubtitle": {
"BalanceAmount":{"en":"Balance Amount","ar":"رصيدالحساب"}, "en": "I agree to the terms and conditions ",
"TotalBalance":{"en":"Total Balance","ar":"الرصيد الكلي"}, "ar":
"CreateAdvancedPayment":{"en":"Create Advanced Payment","ar":"إنشاء دفعة مقدمة"}, "هذا ملخص التقرير الصحي الشهري و الذي يسرد المؤشرات الصحية و نتائج التحاليل لأخر الزيارات. يرجى ملاحظة أن هذا التقرير هو تقرير يتم ارساله بشكل آلي من النظام و لا يعتبر رسمي و لا تؤخذ عليه أي قرارات طبية"
"AdvancePayment":{"en":"Advance Payment","ar":"الدفع مقدما"}, },
"AdvancePaymentLabel":{ "Save": {"en": "Save", "ar": "حفظ "},
"en":"You can create and add an Advanced Payment for you account or other accounts.", "UserAgreement": {"en": "User Agreement", "ar": "اتفاقية الخصوصية "},
"ar":"يمكنك تحويل مبلغ لحسابك لدى المجموعة أو لحساب احد المراجعين"}, "UpdateSuccessfully": {"en": "Update Successfully", "ar": "تم التحديث بنجاح"},
"FileNumber":{"en":"File Number","ar":"رقم الملف"}, "CHECK_VACCINE_AVAILABILITY": {
"Amount":{"en":"Amount *","ar":"المبلغ *"}, "en": "CHECK VACCINE AVAILABILITY",
"DepositorEmail":{"en":"Depositor Email *","ar":"البريد الإلكتروني للمودع *"}, "ar": "تحقق من توافر اللقاح"
"Notes":{"en":"Notes","ar":"ملاحظات"}, },
"SelectPatientName":{"en":"Select Patient Name","ar":"اختر اسم المريض"}, "MyVaccinesAvailability": {
"SelectFamilyPatientName":{"en":"Family Members","ar":"أفراد الأسرة"}, "en": "MyVaccinesAvailability",
"SelectHospital":{"en":"Select Hospital","ar":"اختر المستشفى"}, "ar": "توفر لقاحي"
"MyAccount":{"en":"My Account","ar":"حسابي"}, },
"OtherAccount":{"en":"Other Account","ar":"حساب آخر"}, "PaymentService": {"en": "Payment Service", "ar": "خدمة المدفوعات"},
"SelectBeneficiary":{"en":"Select Beneficiary","ar":"حدد المستفيد"}, "PaymentOnline": {"en": "Service", "ar": "الالكتروني"},
"ConfirmThePayment":{"en":"Confirm The Payment","ar":"تأكيد عملية الدفع"}, "OnlineCheckIn": {"en": "Online Check-In", "ar": "مدفوعات معلقة"},
"DepositorName":{"en":"Depositor Name","ar":"اسم المودع *"}, "MyBalances": {"en": "My Balances", "ar": "رصيدي"},
"MobileNumber":{"en":"Mobile Number","ar":"رقم الجوال"}, "BalanceAmount": {"en": "Balance Amount", "ar": "رصيدالحساب"},
"Ok":{"en":"Ok","ar":"حسنا"}, "TotalBalance": {"en": "Total Balance", "ar": "الرصيد الكلي"},
"TheVerificationCodeExpiresIn":{"en":"The Verification Code Expires In","ar":"تنتهي صلاحية رمز التحقق في"}, "CreateAdvancedPayment": {
"PleaseEnterTheVerificationCode":{"en":"Please enter the verification code send to","ar":"الرجاء إدخال رمز التحقق المرسل إلى"}, "en": "Create Advanced Payment",
"ar": "إنشاء دفعة مقدمة"
},
"AdvancePayment": {"en": "Advance Payment", "ar": "الدفع مقدما"},
"AdvancePaymentLabel": {
"en":
"You can create and add an Advanced Payment for you account or other accounts.",
"ar": "يمكنك تحويل مبلغ لحسابك لدى المجموعة أو لحساب احد المراجعين"
},
"FileNumber": {"en": "File Number", "ar": "رقم الملف"},
"Amount": {"en": "Amount *", "ar": "المبلغ *"},
"DepositorEmail": {
"en": "Depositor Email *",
"ar": "البريد الإلكتروني للمودع *"
},
"Notes": {"en": "Notes", "ar": "ملاحظات"},
"SelectPatientName": {"en": "Select Patient Name", "ar": "اختر اسم المريض"},
"SelectFamilyPatientName": {"en": "Family Members", "ar": "أفراد الأسرة"},
"SelectHospital": {"en": "Select Hospital", "ar": "اختر المستشفى"},
"MyAccount": {"en": "My Account", "ar": "حسابي"},
"OtherAccount": {"en": "Other Account", "ar": "حساب آخر"},
"SelectBeneficiary": {"en": "Select Beneficiary", "ar": "حدد المستفيد"},
"ConfirmThePayment": {"en": "Confirm The Payment", "ar": "تأكيد عملية الدفع"},
"DepositorName": {"en": "Depositor Name", "ar": "اسم المودع *"},
"MobileNumber": {"en": "Mobile Number", "ar": "رقم الجوال"},
"Ok": {"en": "Ok", "ar": "حسنا"},
"TheVerificationCodeExpiresIn": {
"en": "The Verification Code Expires In",
"ar": "تنتهي صلاحية رمز التحقق في"
},
"PleaseEnterTheVerificationCode": {
"en": "Please enter the verification code send to",
"ar": "الرجاء إدخال رمز التحقق المرسل إلى"
},
}; };

@ -1,10 +1,21 @@
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/health_converter.dart';
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/parking_page.dart'; import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/parking_page.dart';
import 'package:diplomaticquarterapp/pages/BookAppointment/BookingOptions.dart';
import 'package:diplomaticquarterapp/pages/ErService/ErOptions.dart';
import 'package:diplomaticquarterapp/pages/ToDoList/ToDo.dart';
import 'package:diplomaticquarterapp/pages/family/my-family.dart';
import 'package:diplomaticquarterapp/pages/insurance/insurance_update_screen.dart';
import 'package:diplomaticquarterapp/pages/livecare/livecare_home.dart';
import 'package:diplomaticquarterapp/pages/medical/medical_profile_page.dart';
import 'package:diplomaticquarterapp/pages/paymentService/payment_service.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/widgets/data_display/text.dart'; import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:diplomaticquarterapp/widgets/data_display/services)contaniner.dart';
class AllHabibMedicalService extends StatefulWidget { class AllHabibMedicalService extends StatefulWidget {
@override @override
@ -17,31 +28,273 @@ class _AllHabibMedicalServiceState extends State<AllHabibMedicalService> {
return AppScaffold( return AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: TranslationBase.of(context).alhabiServices, appBarTitle: TranslationBase.of(context).alhabiServices,
body: ListView( body: Column(
children: <Widget>[ children: [
InkWell( Expanded(
onTap: ()=> Navigator.push(context, FadePage(page: ParkingPage())), child: ListView(
child: Container( scrollDirection: Axis.vertical,
height: 50, physics: AlwaysScrollableScrollPhysics(),
margin: EdgeInsets.all(8), shrinkWrap: true,
children: [
Container(
width: double.infinity,
height: 190,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, image: DecorationImage(
shape: BoxShape.rectangle, image: ExactAssetImage('assets/images/timeline_bg.png'),
borderRadius: BorderRadius.circular(7), fit: BoxFit.cover,
),
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: EdgeInsets.symmetric(horizontal: 10.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ crossAxisAlignment: CrossAxisAlignment.start,
Texts( children: [
TranslationBase.of(context).parking, Text(
fontSize: 16, 'Health Weather Indicators',
) style: TextStyle(
], color: Colors.white,
fontSize: 22.0,
fontWeight: FontWeight.w600,
),
),
SizedBox(
height: 35.0,
),
Text(
'Health Tips Based On Current Weather',
style: TextStyle(
color: Colors.white,
),
),
]),
),
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: MedicalProfilePage(),
),
),
imageLocation:
'assets/images/new-design/my_file_bottom_bar.png',
title: TranslationBase.of(context).myMedicalFile,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: LiveCareHome(),
),
),
imageLocation: 'assets/images/new-design/liveCare_ar_bg.png',
title: TranslationBase.of(context).livecare,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: BookingOptions(
isAppbar: true,
),
),
),
imageLocation:
'assets/images/new-design/booking_icon_active.png',
title: TranslationBase.of(context).bookAppo,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: PaymentService(),
),
),
imageLocation:
'assets/images/al-habib_online_payment_service_icon.png',
title: TranslationBase.of(context).onlinePaymentService,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation:
'assets/images/al-habib_online_payment_service_icon.png',
title: 'Covid-19- Drive-Thru Test',
),
ServicesContainer(
onTap: () {
Navigator.push(
context,
FadePage(
page: ErOptions(
isAppbar: true,
),
),
);
},
imageLocation: 'assets/images/emergency_service_image.png',
title: TranslationBase.of(context).emergencyService,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation: 'assets/images/pharmacy_logo.png',
title: 'Pharmacy'),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: InsuranceUpdate(),
),
), ),
imageLocation:
'assets/images/medical/insurance_card_icon.png',
title: TranslationBase.of(context).updateInsurance,
), ),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation: 'assets/images/ereferral_service_icon.png',
title: 'E-Referral',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: MyFamily(),
),
),
imageLocation:
'assets/images/new-design/family_menu_icon_red.png',
title: 'My Family',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation:
'assets/images/new-design/children_vaccines_icon.png',
title: 'Child Vaccines',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ToDo(),
),
),
imageLocation:
'assets/images/new-design/upcoming_icon_bottom_bar.png',
title: TranslationBase.of(context).todoList,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation: 'assets/images/new-design/body_icon.png',
title: 'Symptom Checker'),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation: 'assets/images/new-design/blood_icon.png',
title: 'Blood Donation',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation:
'assets/images/new-design/health_calculator_icon.png',
title: 'Health Calculators',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
//page: HealthConverter(),
),
),
imageLocation:
'assets/images/new-design/health_convertor_icon.png',
title: 'Health Converter',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation: 'assets/images/new-design/water_icon.png',
title: 'H2O',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(),
),
imageLocation: 'assets/images/new-design/smartwatch_icon.png',
title: TranslationBase.of(context).smartWatches,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation:
'assets/images/new-design/parking_system_icon.png',
title: TranslationBase.of(context).parking,
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation:
'assets/images/new-design/virtual_tour_icon.png',
title: 'Virtual Tour',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation:
'assets/images/new-design/twitter_dashboard_icon.png',
title: 'Latest News',
),
ServicesContainer(
onTap: () => Navigator.push(
context,
FadePage(
page: ParkingPage(),
),
),
imageLocation: 'assets/images/new-design/find_us_icon.png',
title: 'Find Us',
),
],
), ),
), ),
], ],

@ -0,0 +1,94 @@
// import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
// import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
// import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
// import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
// import 'package:flutter/material.dart';
//
// import 'health_converter/blood_sugar.dart';
//
// class HealthConverter extends StatefulWidget {
// @override
// _HealthConverterState createState() => _HealthConverterState();
// }
//
// class _HealthConverterState extends State<HealthConverter> {
// @override
// Widget build(BuildContext context) {
// return AppScaffold(
// isShowAppBar: true,
// appBarTitle: 'Health Converter',
// body: Column(
// children: [
// Container(
// width: double.infinity,
// height: 30,
// ),
// Row(
// children: [
// Expanded(
// flex: 1,
// child: InkWell(
// onTap: () {
// Navigator.push(
// context,
// FadePage(page: BloodSugar()),
// );
// },
// child: MedicalProfileItem(
// title: 'Blood',
// imagePath: 'blood_sugar_icon.png',
// subTitle: 'Sugar',
// ),
// ),
// ),
// Expanded(
// flex: 1,
// child: InkWell(
// onTap: () {
// Navigator.push(
// context,
// FadePage(
// // page: [](),
// ),
// );
// },
// child: MedicalProfileItem(
// title: 'Blood',
// imagePath: 'blood_cholesterol_icon.png',
// subTitle: 'Cholesterol',
// ),
// ),
// ),
// ],
// ),
// Row(
// children: [
// Expanded(
// flex: 1,
// child: InkWell(
// onTap: () {
// Navigator.push(
// context,
// FadePage(
// // page: [](),
// ),
// );
// },
// child: MedicalProfileItem(
// title: 'Triglycerides',
// imagePath: 'triglycerides_blood_icon.png',
// subTitle: 'Fat in blood',
// ),
// ),
// ),
// Expanded(
// flex: 1,
// child: Container(),
// ),
// ],
// )
// ],
// ),
// );
// }
// }

@ -0,0 +1,208 @@
// import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
// import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
// import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
// import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
//
// const activeCardColor = Color(0xff70777A);
// const inactiveCardColor = Color(0xffFAFAFd);
//
// class BloodSugar extends StatefulWidget {
// @override
// _BloodSugarState createState() => _BloodSugarState();
// }
//
// Color color;
//
// class _BloodSugarState extends State<BloodSugar> {
// Color cardMGColor = inactiveCardColor;
// Color cardMMOLColor = inactiveCardColor;
//
// void updateColor(int type) {
// //MG/DLT card
// if (type == 1) {
// if (cardMGColor == inactiveCardColor) {
// cardMGColor = activeCardColor;
// cardMMOLColor = inactiveCardColor;
// } else {
// cardMGColor = inactiveCardColor;
// }
// }
// if (type == 2) {
// if (cardMMOLColor == inactiveCardColor) {
// cardMMOLColor = activeCardColor;
// cardMGColor = inactiveCardColor;
// } else {
// cardMMOLColor = inactiveCardColor;
// }
// }
// }
//
// bool _visible = false;
//
// TextEditingController textController = new TextEditingController();
// String finalValue;
//
// @override
// Widget build(BuildContext context) {
// return AppScaffold(
// isShowAppBar: true,
// appBarTitle: 'Blood Sugar Conversion',
// body: Padding(
// padding: const EdgeInsets.all(16.0),
// child: Column(
// //crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// Container(
// width: 350.0,
// child: Text(
// 'Convert blood sugar/glucose from mmol/l (UK standard) to mg/dlt (US standard) and vice versa.',
// //textAlign: TextAlign.center,
// style: TextStyle(fontSize: 20.0),
// ),
// ),
// SizedBox(
// height: 15.0,
// ),
// Container(
// color: Colors.white,
// height: 120.0,
// child: Padding(
// padding: const EdgeInsets.all(8.0),
// child: Column(
// //crossAxisAlignment: CrossAxisAlignment.end,
// children: [
// Padding(
// padding: const EdgeInsets.symmetric(horizontal: 15.0),
// child: Row(
// children: [
// Texts(
// 'Convert from',
// )
// ],
// ),
// ),
// SizedBox(
// height: 9.0,
// ),
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// children: [
// GestureDetector(
// onTap: () {
// setState(() {
// updateColor(1);
// finalValue = textController.text * 3;
// });
// },
// child: Container(
// height: 55.0,
// width: 150.0,
// decoration: BoxDecoration(
// color: cardMGColor,
// borderRadius: BorderRadius.circular(10.0),
// ),
// child: Padding(
// padding: const EdgeInsets.symmetric(
// vertical: 0.0, horizontal: 18.0),
// child: Texts('MG/DLt TO \nMMOL/L'),
// ),
// ),
// ),
// GestureDetector(
// onTap: () {
// setState(() {
// updateColor(2);
// finalValue = textController.text * 6;
// });
// },
// child: Container(
// height: 55.0,
// width: 150.0,
// decoration: BoxDecoration(
// color: cardMMOLColor,
// borderRadius: BorderRadius.circular(10.0),
// ),
// child: Padding(
// padding:
// const EdgeInsets.symmetric(horizontal: 16.0),
// child: Texts('MG/DLt TO\n MMOL/L'),
// ),
// ),
// ),
// ],
// ),
// ],
// ),
// ),
// ),
// SizedBox(
// height: 25.0,
// ),
// Container(
// height: 55.0,
// color: Colors.white,
// child: TextFormField(
// controller: textController,
// inputFormatters: <TextInputFormatter>[
// FilteringTextInputFormatter.digitsOnly
// ],
// keyboardType: TextInputType.number,
// decoration: InputDecoration(
// labelText: " Enter the reading value",
// ),
// ),
// ),
// SizedBox(
// height: 5.0,
// ),
// Visibility(
// visible: _visible,
// child: Container(
// height: 95.0,
// width: 350.0,
// decoration: BoxDecoration(
// color: Colors.white,
// border: Border.all(color: Colors.black),
// borderRadius: BorderRadius.circular(15.0),
// ),
// child: Padding(
// padding: const EdgeInsets.all(8.0),
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Texts('Result:'),
// Text(
// finalValue.toString(),
// style: TextStyle(fontSize: 35.0),
// ),
// ],
// ),
// ),
// ),
// ),
// SizedBox(
// height: 15.0,
// ),
// Flexible(
// child: Container(
// height: 100.0,
// width: 150.0,
// child: Button(
// label: 'CALCULATE',
// onTap: () {
// setState(() {
// _visible = !_visible;
// });
// },
// ),
// ),
// ),
// ],
// ),
// ),
// );
// }
// }

@ -445,8 +445,8 @@ class _HomePageState extends State<HomePage> {
height: 8, height: 8,
), ),
InkWell( InkWell(
onTap: () => Navigator.push( onTap: () =>
context, FadePage(page: PaymentService())), Navigator.push(context, FadePage(page: PaymentService())),
child: Container( child: Container(
margin: EdgeInsets.only(left: 15, right: 15), margin: EdgeInsets.only(left: 15, right: 15),
child: Row( child: Row(

@ -120,119 +120,119 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
}); });
//_firebase Background message handler //_firebase Background message handler
_firebaseMessaging.configure( // _firebaseMessaging.configure(
onMessage: (Map<String, dynamic> message) async { // onMessage: (Map<String, dynamic> message) async {
showDialog("onMessage: $message"); // showDialog("onMessage: $message");
print("onMessage: $message"); // print("onMessage: $message");
print(message); // print(message);
print(message['name']); // print(message['name']);
print(message['appointmentdate']); // print(message['appointmentdate']);
//
if (Platform.isIOS) { // if (Platform.isIOS) {
if (message['is_call'] == "true") { // if (message['is_call'] == "true") {
var route = ModalRoute.of(context); // var route = ModalRoute.of(context);
//
if (route != null) { // if (route != null) {
print(route.settings.name); // print(route.settings.name);
} // }
//
Map<String, dynamic> myMap = new Map<String, dynamic>.from(message); // Map<String, dynamic> myMap = new Map<String, dynamic>.from(message);
print(myMap); // print(myMap);
LandingPage.isOpenCallPage = true; // LandingPage.isOpenCallPage = true;
LandingPage.incomingCallData = IncomingCallData.fromJson(myMap); // LandingPage.incomingCallData = IncomingCallData.fromJson(myMap);
if (!isPageNavigated) { // if (!isPageNavigated) {
isPageNavigated = true; // isPageNavigated = true;
Navigator.push( // Navigator.push(
context, // context,
MaterialPageRoute( // MaterialPageRoute(
builder: (context) => IncomingCall( // builder: (context) => IncomingCall(
incomingCallData: LandingPage.incomingCallData))) // incomingCallData: LandingPage.incomingCallData)))
.then((value) { // .then((value) {
isPageNavigated = false; // isPageNavigated = false;
}); // });
} // }
} else { // } else {
print("Is Call Not Found iOS"); // print("Is Call Not Found iOS");
} // }
} else { // } else {
print("Is Call Not Found iOS"); // print("Is Call Not Found iOS");
} // }
//
if (Platform.isAndroid) { // if (Platform.isAndroid) {
if (message['data'].containsKey("is_call")) { // if (message['data'].containsKey("is_call")) {
var route = ModalRoute.of(context); // var route = ModalRoute.of(context);
//
if (route != null) { // if (route != null) {
print(route.settings.name); // print(route.settings.name);
} // }
//
Map<String, dynamic> myMap = // Map<String, dynamic> myMap =
new Map<String, dynamic>.from(message['data']); // new Map<String, dynamic>.from(message['data']);
print(myMap); // print(myMap);
LandingPage.isOpenCallPage = true; // LandingPage.isOpenCallPage = true;
LandingPage.incomingCallData = IncomingCallData.fromJson(myMap); // LandingPage.incomingCallData = IncomingCallData.fromJson(myMap);
if (!isPageNavigated) { // if (!isPageNavigated) {
isPageNavigated = true; // isPageNavigated = true;
Navigator.push( // Navigator.push(
context, // context,
MaterialPageRoute( // MaterialPageRoute(
builder: (context) => IncomingCall( // builder: (context) => IncomingCall(
incomingCallData: LandingPage.incomingCallData))) // incomingCallData: LandingPage.incomingCallData)))
.then((value) { // .then((value) {
isPageNavigated = false; // isPageNavigated = false;
}); // });
} // }
} else { // } else {
print("Is Call Not Found Android"); // print("Is Call Not Found Android");
} // }
} else { // } else {
print("Is Call Not Found Android"); // print("Is Call Not Found Android");
} // }
}, // },
onBackgroundMessage: Platform.isIOS ? null : myBackgroundMessageHandler, // onBackgroundMessage: Platform.isIOS ? null : myBackgroundMessageHandler,
onLaunch: (Map<String, dynamic> message) async { // onLaunch: (Map<String, dynamic> message) async {
print("onLaunch: $message"); // print("onLaunch: $message");
showDialog("onLaunch: $message"); // showDialog("onLaunch: $message");
}, // },
onResume: (Map<String, dynamic> message) async { // onResume: (Map<String, dynamic> message) async {
print("onResume: $message"); // print("onResume: $message");
print(message); // print(message);
print(message['name']); // print(message['name']);
print(message['appointmentdate']); // print(message['appointmentdate']);
//
showDialog("onResume: $message"); // showDialog("onResume: $message");
//
if (Platform.isIOS) { // if (Platform.isIOS) {
if (message['is_call'] == "true") { // if (message['is_call'] == "true") {
var route = ModalRoute.of(context); // var route = ModalRoute.of(context);
//
if (route != null) { // if (route != null) {
print(route.settings.name); // print(route.settings.name);
} // }
//
Map<String, dynamic> myMap = new Map<String, dynamic>.from(message); // Map<String, dynamic> myMap = new Map<String, dynamic>.from(message);
print(myMap); // print(myMap);
LandingPage.isOpenCallPage = true; // LandingPage.isOpenCallPage = true;
LandingPage.incomingCallData = IncomingCallData.fromJson(myMap); // LandingPage.incomingCallData = IncomingCallData.fromJson(myMap);
if (!isPageNavigated) { // if (!isPageNavigated) {
isPageNavigated = true; // isPageNavigated = true;
Navigator.push( // Navigator.push(
context, // context,
MaterialPageRoute( // MaterialPageRoute(
builder: (context) => IncomingCall( // builder: (context) => IncomingCall(
incomingCallData: LandingPage.incomingCallData))) // incomingCallData: LandingPage.incomingCallData)))
.then((value) { // .then((value) {
isPageNavigated = false; // isPageNavigated = false;
}); // });
} // }
} else { // } else {
print("Is Call Not Found iOS"); // print("Is Call Not Found iOS");
} // }
} else { // } else {
print("Is Call Not Found iOS"); // print("Is Call Not Found iOS");
} // }
}, // },
); // );
} }
showDialog(String message) { showDialog(String message) {

@ -43,7 +43,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
onModelReady: (model) => model.getAppointmentHistory(), onModelReady: (model) => model.getAppointmentHistory(),
builder: (_, model, widget) => AppScaffold( builder: (_, model, widget) => AppScaffold(
baseViewModel: model, baseViewModel: model,
body: SafeArea( body: Container(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
children: <Widget>[ children: <Widget>[

@ -0,0 +1,50 @@
import 'package:flutter/material.dart';
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
class ServicesContainer extends StatelessWidget {
final String title;
final String imageLocation;
final Function onTap;
ServicesContainer({this.title, this.imageLocation, this.onTap});
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () => onTap(),
child: Container(
height: 60,
margin: EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.rectangle,
borderRadius: BorderRadius.circular(7),
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Row(
children: [
Image.asset(
imageLocation,
height: 30,
width: 40,
),
SizedBox(
width: 20,
),
Texts(
title,
fontSize: 16,
),
],
),
],
),
),
),
);
}
}
Loading…
Cancel
Save