diff --git a/assets/images/new-design/floward_logo.png b/assets/images/new-design/floward_logo.png new file mode 100644 index 00000000..6c99e3c2 Binary files /dev/null and b/assets/images/new-design/floward_logo.png differ diff --git a/lib/config/localized_values.dart b/lib/config/localized_values.dart index b5e1f0d2..d35d144f 100644 --- a/lib/config/localized_values.dart +++ b/lib/config/localized_values.dart @@ -1933,4 +1933,5 @@ const Map localizedValues = { "locationTimeoutError": {"en": "Unable to fetch your location, Please try again.", "ar": "غير قادر على جلب موقعك، يرجى المحاولة مرة أخرى."}, "loadMore": {"en": "Load More", "ar": "تحميل المزيد"}, "selectHospitalBloodDonation": {"en": "Please select the hospital you want to book an appointment with: ", "ar": "يرجى اختيار المستشفى الذي تريد حجز موعد معه:"}, + "partnerServices": {"en": "Partner Services", "ar": "خدمات الشركاء"}, }; diff --git a/lib/pages/landing/fragments/home_page_fragment2.dart b/lib/pages/landing/fragments/home_page_fragment2.dart index 6d013e8b..10aaf502 100644 --- a/lib/pages/landing/fragments/home_page_fragment2.dart +++ b/lib/pages/landing/fragments/home_page_fragment2.dart @@ -53,9 +53,10 @@ class _HomePageFragment2State extends State { hmgServices.add(new HmgServices(0, TranslationBase.of(context).book, TranslationBase.of(context).appointmentLabel, "assets/images/new/book appointment.svg", isLogin)); hmgServices.add(new HmgServices(1, TranslationBase.of(context).liveCare, TranslationBase.of(context).onlineConsulting, "assets/images/new/Live_Care.svg", isLogin)); - hmgServices.add(new HmgServices(2, TranslationBase.of(context).emergencyTitle, TranslationBase.of(context).emergencySubtitle, "assets/images/new/emergency.svg", isLogin)); + // hmgServices.add(new HmgServices(2, TranslationBase.of(context).emergencyTitle, TranslationBase.of(context).emergencySubtitle, "assets/images/new/emergency.svg", isLogin)); hmgServices.add(new HmgServices(3, TranslationBase.of(context).hhcHome, TranslationBase.of(context).healthCare, "assets/images/new/HHC.svg", isLogin)); hmgServices.add(new HmgServices(4, TranslationBase.of(context).checkup, TranslationBase.of(context).comprehensive, "assets/images/new/comprehensive_checkup.svg", isLogin)); + hmgServices.add(new HmgServices(9, "Partners", TranslationBase.of(context).emergencySubtitle, "assets/images/new/red-star.svg", isLogin)); hmgServices.add(new HmgServices(5, TranslationBase.of(context).online, TranslationBase.of(context).payment, "assets/images/new/paymentMethods.png", isLogin)); hmgServices.add(new HmgServices(6, TranslationBase.of(context).ereferralTitle, TranslationBase.of(context).ereferralSubtitle, "assets/images/new/E_Referral.svg", isLogin)); hmgServices.add(new HmgServices(7, TranslationBase.of(context).covidTest, TranslationBase.of(context).driveThru, "assets/images/new/CoronaIcon.svg", isLogin)); diff --git a/lib/pages/landing/partner_services/partner_services_page.dart b/lib/pages/landing/partner_services/partner_services_page.dart new file mode 100644 index 00000000..c353d24f --- /dev/null +++ b/lib/pages/landing/partner_services/partner_services_page.dart @@ -0,0 +1,49 @@ +import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/my_web_view.dart'; +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:flutter/material.dart'; + +class PartnerServicesPage extends StatelessWidget { + const PartnerServicesPage(); + + @override + Widget build(BuildContext context) { + return AppScaffold( + isShowAppBar: true, + appBarTitle: TranslationBase.of(context).partnerServices, + isShowDecPage: false, + showNewAppBar: true, + showNewAppBarTitle: true, + backgroundColor: Color(0xffF8F8F8), + body: GridView( + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3, childAspectRatio: 2 / 2, crossAxisSpacing: 12, mainAxisSpacing: 12), + physics: NeverScrollableScrollPhysics(), + padding: EdgeInsets.all(21), + shrinkWrap: true, + children: [ + InkWell( + onTap: () { + // Navigator.push(context, FadePage(page: AmbulanceReq())); + Navigator.of(context).push( + MaterialPageRoute( + builder: (BuildContext context) => MyWebView( + title: "HMG Floward", + selectedUrl: "https://hmg.floward.com/", + ), + ), + ); + }, + child: MedicalProfileItem( + title: "Floward", + imagePath: 'assets/images/new-design/floward_logo.png', + subTitle: "", + isPngImage: true, + isEnable: true, + ), + ), + ], + ), + ); + } +} diff --git a/lib/pages/landing/widgets/services_view.dart b/lib/pages/landing/widgets/services_view.dart index 84682c64..1e3478f5 100644 --- a/lib/pages/landing/widgets/services_view.dart +++ b/lib/pages/landing/widgets/services_view.dart @@ -24,6 +24,7 @@ import 'package:diplomaticquarterapp/pages/DrawerPages/family/my-family.dart'; import 'package:diplomaticquarterapp/pages/ErService/ErOptions.dart'; import 'package:diplomaticquarterapp/pages/insurance/insurance_update_screen.dart'; import 'package:diplomaticquarterapp/pages/landing/landing_page.dart'; +import 'package:diplomaticquarterapp/pages/landing/partner_services/partner_services_page.dart'; import 'package:diplomaticquarterapp/pages/livecare/livecare_home.dart'; import 'package:diplomaticquarterapp/pages/medical/medical_profile_page_new.dart'; import 'package:diplomaticquarterapp/pages/medical/smart_watch_health_data/smart_watch_instructions.dart'; @@ -191,6 +192,9 @@ class ServicesView extends StatelessWidget { } else if (hmgServices.action == 8) { Navigator.push(context, FadePage(page: ContactUsPage())); locator().hmgServices.logServiceName('find us reach us'); + } else if (hmgServices.action == 9) { + Navigator.push(context, FadePage(page: PartnerServicesPage())); + locator().hmgServices.logServiceName('partner service'); } } @@ -273,127 +277,6 @@ class ServicesView extends StatelessWidget { Navigator.push(context, FadePage(page: ContactUsPage())); locator().hmgServices.logServiceName('find us reach us'); } - - // if (hmgServices.action == 10) { - // openLiveCare(context); - // } else if (index == 1) { - // showCovidDialog(context); - // locator().hmgServices.logServiceName('covid-test drive-thru'); - // } else if (index == 2) { - // Navigator.push(context, FadePage(page: PaymentService())); - // locator().hmgServices.logServiceName('online payments'); - // } else if (index == 3) { - // Navigator.push(context, FadePage(page: HomeHealthCarePage())); - // locator().hmgServices.logServiceName('home health care'); - // } else if (index == 4) { - // Navigator.push(context, FadePage(page: CMCPage())); - // locator().hmgServices.logServiceName('comprehensive medical checkup'); - // } else if (index == 5) { - // Navigator.push(context, FadePage(page: ErOptions(isAppbar: true))); - // locator().hmgServices.logServiceName('emergency service'); - // } else if (index == 6) { - // Navigator.push(context, FadePage(page: EReferralPage())); - // locator().hmgServices.logServiceName('e-referral service'); - // } else if (index == 7) { - // Navigator.push(context, FadePage(page: H2OPage())); - // locator().hmgServices.logServiceName('water consumption'); - // } else if (index == 8) { - // Navigator.push(context, FadePage(page: ContactUsPage())); - // locator().hmgServices.logServiceName('find us reach us'); - // } else if (index == 9) { - // Navigator.push( - // context, - // FadePage( - // page: MedicalProfilePageNew(), - // ), - // ); - // locator().hmgServices.logServiceName('my medical details'); - // } else if (index == 10) { - // Navigator.push( - // context, - // FadePage( - // page: Search(), - // ), - // ); - // locator().hmgServices.logServiceName('book appointment'); - // } else if (index == 11) { - // getPharmacyToken(context); - // locator().hmgServices.logServiceName('al habib pharmacy'); - // } else if (index == 12) { - // Navigator.push( - // context, - // FadePage( - // page: InsuranceUpdate(), - // ), - // ); - // locator().hmgServices.logServiceName('update insurance'); - // } else if (index == 13) { - // Navigator.push( - // context, - // FadePage( - // page: MyFamily(), - // ), - // ); - // locator().hmgServices.logServiceName('my family files'); - // } else if (index == 14) { - // Navigator.push( - // context, - // FadePage(page: ChildInitialPage()), - // ); - // locator().hmgServices.logServiceName('my child vaccines'); - // } else if (index == 15) { - // LandingPage.shared.switchToDoFromHMGServices(); - // locator().hmgServices.logServiceName('todo list'); - // } else if (index == 16) { - // Navigator.push( - // context, - // FadePage(page: BloodDonationPage()), - // ); - // locator().hmgServices.logServiceName('blood donation'); - // } else if (index == 17) { - // Navigator.push( - // context, - // FadePage( - // page: (HealthCalculators()), - // ), - // ); - // locator().hmgServices.logServiceName('health calculator'); - // } else if (index == 18) { - // Navigator.push( - // context, - // FadePage( - // page: HealthConverter(), - // ), - // ); - // locator().hmgServices.logServiceName('heath converters'); - // } else if (index == 19) { - // Navigator.push( - // context, - // FadePage(page: SmartWatchInstructions()), - // ); - // locator().hmgServices.logServiceName('smart watches'); - // } else if (index == 20) { - // locator().hmgServices.logServiceName('car parcking service'); - // Navigator.push( - // context, - // FadePage( - // page: ParkingPage(), - // ), - // ); - // } else if (index == 21) { - // launch("https://hmgwebservices.com/vt_mobile/html/index.html"); - // locator().hmgServices.logServiceName('virtual tour'); - // } else if (index == 22) { - // Navigator.of(context).push( - // MaterialPageRoute( - // builder: (BuildContext context) => MyWebView( - // title: "HMG News", - // selectedUrl: "https://twitter.com/hashtag/مجموعة_د_سليمان_الحبيب_الطبية?src=hashtag_click&f=live", - // ), - // ), - // ); - // locator().hmgServices.logServiceName('latest news'); - // } } showCovidDialog(BuildContext context) { diff --git a/lib/uitl/translations_delegate_base.dart b/lib/uitl/translations_delegate_base.dart index 61009cb4..0afa3dd5 100644 --- a/lib/uitl/translations_delegate_base.dart +++ b/lib/uitl/translations_delegate_base.dart @@ -2918,6 +2918,7 @@ class TranslationBase { String get locationTimeoutError => localizedValues["locationTimeoutError"][locale.languageCode]; String get loadMore => localizedValues["loadMore"][locale.languageCode]; String get selectHospitalBloodDonation => localizedValues["selectHospitalBloodDonation"][locale.languageCode]; + String get partnerServices => localizedValues["partnerServices"][locale.languageCode]; }