|
|
|
@ -50,7 +50,14 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
late MedicalFileViewModel medicalFileViewModel;
|
|
|
|
late MedicalFileViewModel medicalFileViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
late final List<HmgServicesComponentModel> hmgServices = [
|
|
|
|
late final List<HmgServicesComponentModel> hmgServices = [
|
|
|
|
HmgServicesComponentModel(11, "Emergency Services".needTranslation, "".needTranslation, AppAssets.emergency_services_icon, bgColor: AppColors.primaryRedColor, true, route: null, onTap: () async {
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
|
|
|
11,
|
|
|
|
|
|
|
|
"Emergency Services".needTranslation,
|
|
|
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
|
|
|
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(
|
|
|
|
@ -78,7 +85,14 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
route: AppRoutes.bookAppointmentPage,
|
|
|
|
route: AppRoutes.bookAppointmentPage,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HmgServicesComponentModel(5, "Complete Checkup".needTranslation, "".needTranslation, AppAssets.comprehensiveCheckup, bgColor: AppColors.bgGreenColor, true, route: null, onTap: () async {
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
|
|
|
5,
|
|
|
|
|
|
|
|
"Complete Checkup".needTranslation,
|
|
|
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
|
|
|
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 {
|
|
|
|
@ -131,7 +145,13 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
11, "E-Referral Services".needTranslation, "".needTranslation, AppAssets.eReferral, bgColor: AppColors.eReferralCardColor, true, route: null, onTap: () async {
|
|
|
|
11,
|
|
|
|
|
|
|
|
"E-Referral Services".needTranslation,
|
|
|
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
|
|
|
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 {
|
|
|
|
@ -393,19 +413,19 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
? CustomButton(
|
|
|
|
? CustomButton(
|
|
|
|
height: 40.h,
|
|
|
|
height: 40.h,
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
icon: AppAssets.recharge_icon,
|
|
|
|
iconSize: 16.w,
|
|
|
|
iconSize: 16.w,
|
|
|
|
iconColor: AppColors.infoColor,
|
|
|
|
iconColor: AppColors.infoColor,
|
|
|
|
textColor: AppColors.infoColor,
|
|
|
|
textColor: AppColors.infoColor,
|
|
|
|
text: "Recharge".needTranslation,
|
|
|
|
text: "Recharge".needTranslation,
|
|
|
|
borderWidth: 0.w,
|
|
|
|
borderWidth: 0.w,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
backgroundColor: Color(0xff45A2F8).withValues(alpha: 0.08),
|
|
|
|
backgroundColor: Color(0xff45A2F8).withValues(alpha: 0.08),
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
fontSize: 12.f,
|
|
|
|
fontSize: 12.f,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage()));
|
|
|
|
Navigator.of(context).push(CustomPageRoute(page: RechargeWalletPage()));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -444,60 +464,60 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
getIt.get<AppState>().isAuthenticated
|
|
|
|
getIt.get<AppState>().isAuthenticated
|
|
|
|
? Wrap(
|
|
|
|
? Wrap(
|
|
|
|
spacing: -8.h,
|
|
|
|
spacing: -8.h,
|
|
|
|
// runSpacing: 0.h,
|
|
|
|
// runSpacing: 0.h,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
icon: AppAssets.babyGirlImg,
|
|
|
|
icon: AppAssets.babyGirlImg,
|
|
|
|
height: 28.h,
|
|
|
|
height: 28.h,
|
|
|
|
width: 28.w,
|
|
|
|
width: 28.w,
|
|
|
|
border: 1,
|
|
|
|
border: 1,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
icon: AppAssets.femaleImg,
|
|
|
|
icon: AppAssets.femaleImg,
|
|
|
|
height: 28.h,
|
|
|
|
height: 28.h,
|
|
|
|
width: 28.w,
|
|
|
|
width: 28.w,
|
|
|
|
border: 1,
|
|
|
|
border: 1,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
Utils.buildImgWithAssets(
|
|
|
|
icon: AppAssets.maleImg,
|
|
|
|
icon: AppAssets.maleImg,
|
|
|
|
height: 28.h,
|
|
|
|
height: 28.h,
|
|
|
|
width: 28.w,
|
|
|
|
width: 28.w,
|
|
|
|
border: 1,
|
|
|
|
border: 1,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
borderRadius: 50.r,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: "Login to view your medical file".needTranslation.toText12(fontWeight: FontWeight.w500, maxLine: 2),
|
|
|
|
: "Login to view your medical file".needTranslation.toText12(fontWeight: FontWeight.w500, maxLine: 2),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
getIt.get<AppState>().isAuthenticated
|
|
|
|
getIt.get<AppState>().isAuthenticated
|
|
|
|
? CustomButton(
|
|
|
|
? CustomButton(
|
|
|
|
height: 40.h,
|
|
|
|
height: 40.h,
|
|
|
|
icon: AppAssets.add_icon,
|
|
|
|
icon: AppAssets.add_icon,
|
|
|
|
iconSize: 16.w,
|
|
|
|
iconSize: 16.w,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
text: "Add Member".needTranslation,
|
|
|
|
text: "Add Member".needTranslation,
|
|
|
|
borderWidth: 0.w,
|
|
|
|
borderWidth: 0.w,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
borderColor: Colors.transparent,
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.08),
|
|
|
|
backgroundColor: AppColors.primaryRedColor.withValues(alpha: 0.08),
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
padding: EdgeInsets.all(8.w),
|
|
|
|
fontSize: 12.f,
|
|
|
|
fontSize: 12.f,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
DialogService dialogService = getIt.get<DialogService>();
|
|
|
|
DialogService dialogService = getIt.get<DialogService>();
|
|
|
|
medicalFileViewModel.clearAuthValues();
|
|
|
|
medicalFileViewModel.clearAuthValues();
|
|
|
|
dialogService.showAddFamilyFileSheet(
|
|
|
|
dialogService.showAddFamilyFileSheet(
|
|
|
|
label: "Add Family Member".needTranslation,
|
|
|
|
label: "Add Family Member".needTranslation,
|
|
|
|
message: "Please fill the below field to add a new family member to your profile".needTranslation,
|
|
|
|
message: "Please fill the below field to add a new family member to your profile".needTranslation,
|
|
|
|
onVerificationPress: () {
|
|
|
|
onVerificationPress: () {
|
|
|
|
medicalFileViewModel.addFamilyFile(otpTypeEnum: OTPTypeEnum.sms);
|
|
|
|
medicalFileViewModel.addFamilyFile(otpTypeEnum: OTPTypeEnum.sms);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|