|
|
|
@ -53,14 +53,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
late MedicalFileViewModel medicalFileViewModel;
|
|
|
|
late MedicalFileViewModel medicalFileViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
late final List<HmgServicesComponentModel> hmgServices = [
|
|
|
|
late final List<HmgServicesComponentModel> hmgServices = [
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
HmgServicesComponentModel(11, LocaleKeys.emergencyServices.tr(), "", AppAssets.emergency_services_icon, bgColor: AppColors.primaryRedColor, true, route: null, onTap: () async {
|
|
|
|
11,
|
|
|
|
|
|
|
|
LocaleKeys.emergencyServices.tr(),
|
|
|
|
|
|
|
|
"",
|
|
|
|
|
|
|
|
AppAssets.emergency_services_icon,
|
|
|
|
|
|
|
|
bgColor: AppColors.primaryRedColor,
|
|
|
|
|
|
|
|
true,
|
|
|
|
|
|
|
|
route: null, onTap: () async {
|
|
|
|
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
getIt.get<EmergencyServicesViewModel>().flushData();
|
|
|
|
getIt.get<EmergencyServicesViewModel>().flushData();
|
|
|
|
getIt.get<EmergencyServicesViewModel>().getTransportationOrders(
|
|
|
|
getIt.get<EmergencyServicesViewModel>().getTransportationOrders(
|
|
|
|
@ -88,8 +81,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
route: AppRoutes.bookAppointmentPage,
|
|
|
|
route: AppRoutes.bookAppointmentPage,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
HmgServicesComponentModel(5, LocaleKeys.completeCheckup.tr(), "", AppAssets.comprehensiveCheckup, bgColor: AppColors.bgGreenColor, true, route: null, onTap: () async {
|
|
|
|
5, LocaleKeys.completeCheckup.tr(), "", AppAssets.comprehensiveCheckup, bgColor: AppColors.bgGreenColor, true, route: null, onTap: () async {
|
|
|
|
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.comprehensiveCheckupPage);
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.comprehensiveCheckupPage);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -141,8 +133,7 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
HmgServicesComponentModel(11, LocaleKeys.eReferralServices.tr(), "", AppAssets.eReferral, bgColor: AppColors.eReferralCardColor, true, route: null, onTap: () async {
|
|
|
|
11, LocaleKeys.eReferralServices.tr(), "", AppAssets.eReferral, bgColor: AppColors.eReferralCardColor, true, route: null, onTap: () async {
|
|
|
|
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.eReferralPage);
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.eReferralPage);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -700,6 +691,58 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
|
|
|
color: AppColors.whiteColor,
|
|
|
|
|
|
|
|
borderRadius: 12.h,
|
|
|
|
|
|
|
|
hasShadow: false,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(16.h),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.privacy_terms, width: 32.w, height: 32.h, fit: BoxFit.contain, iconColor: AppColors.blackColor),
|
|
|
|
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
|
|
|
|
Expanded(child: LocaleKeys.termsConditoins.tr().toText14(weight: FontWeight.w500))
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
).onPress(() {
|
|
|
|
|
|
|
|
Utils.openWebView(
|
|
|
|
|
|
|
|
url: 'https://hmg.com/en/Pages/Terms.aspx',
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(width: 16.w),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
|
|
|
color: AppColors.whiteColor,
|
|
|
|
|
|
|
|
borderRadius: 12.h,
|
|
|
|
|
|
|
|
hasShadow: false,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(16.h),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.privacy_terms, width: 32.w, height: 32.h, fit: BoxFit.contain, iconColor: AppColors.blackColor),
|
|
|
|
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
|
|
|
|
Expanded(child: LocaleKeys.privacyPolicy.tr().toText14(weight: FontWeight.w500))
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
).onPress(() {
|
|
|
|
|
|
|
|
Utils.openWebView(
|
|
|
|
|
|
|
|
url: 'https://hmg.com/en/Pages/Privacy.aspx',
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).paddingSymmetrical(24.w, 0),
|
|
|
|
).paddingSymmetrical(24.w, 0),
|
|
|
|
|