|
|
|
|
@ -46,18 +46,9 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
late MedicalFileViewModel medicalFileViewModel;
|
|
|
|
|
|
|
|
|
|
late final List<HmgServicesComponentModel> hmgServices = [
|
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
11,
|
|
|
|
|
"Emergency Services".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.emergency_services_icon,
|
|
|
|
|
bgColor: AppColors.primaryRedColor,
|
|
|
|
|
true,
|
|
|
|
|
route: null, onTap: () {
|
|
|
|
|
HmgServicesComponentModel(11, "Emergency Services".needTranslation, "".needTranslation, AppAssets.emergency_services_icon, bgColor: AppColors.primaryRedColor, true, route: null, onTap: () {
|
|
|
|
|
getIt.get<EmergencyServicesViewModel>().flushData();
|
|
|
|
|
getIt.get<EmergencyServicesViewModel>().getTransportationOrders(
|
|
|
|
|
showLoader: false,
|
|
|
|
|
);
|
|
|
|
|
getIt.get<EmergencyServicesViewModel>().getTransportationOrders(showLoader: false);
|
|
|
|
|
getIt.get<EmergencyServicesViewModel>().getRRTOrders(
|
|
|
|
|
showLoader: false,
|
|
|
|
|
);
|
|
|
|
|
@ -106,72 +97,57 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
route: AppRoutes.eReferralPage,
|
|
|
|
|
),
|
|
|
|
|
HmgServicesComponentModel(
|
|
|
|
|
3,
|
|
|
|
|
"Blood Donation".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.blood_donation_icon,
|
|
|
|
|
bgColor: AppColors.bloodDonationCardColor,
|
|
|
|
|
true,
|
|
|
|
|
route: null, onTap: () async {
|
|
|
|
|
LoaderBottomSheet.showLoader(loadingText: "Fetching Data...");
|
|
|
|
|
await bloodDonationViewModel.getRegionSelectedClinics(onSuccess: (val) async {
|
|
|
|
|
// await bloodDonationViewModel.getPatientBloodGroupDetails(onSuccess: (val) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
Navigator.of(GetIt.instance<NavigationService>().navigatorKey.currentContext!).push(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
page: BloodDonationPage(),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
// }, onError: (err) {
|
|
|
|
|
// LoaderBottomSheet.hideLoader();
|
|
|
|
|
// });
|
|
|
|
|
}, onError: (err) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Covid 19 Test".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.covid19icon,
|
|
|
|
|
// bgColor: AppColors.covid29Color,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.covid19Test,
|
|
|
|
|
// ),
|
|
|
|
|
3,
|
|
|
|
|
"Blood Donation".needTranslation,
|
|
|
|
|
"".needTranslation,
|
|
|
|
|
AppAssets.blood_donation_icon,
|
|
|
|
|
bgColor: AppColors.bloodDonationCardColor,
|
|
|
|
|
true,
|
|
|
|
|
route: AppRoutes.bloodDonationPage,
|
|
|
|
|
),
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Covid 19 Test".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.covid19icon,
|
|
|
|
|
// bgColor: AppColors.covid29Color,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.covid19Test,
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Vital Sign".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.covid19icon,
|
|
|
|
|
// bgColor: AppColors.covid29Color,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.vitalSign,
|
|
|
|
|
// )
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Vital Sign".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.covid19icon,
|
|
|
|
|
// bgColor: AppColors.covid29Color,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.vitalSign,
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 3,
|
|
|
|
|
// "Home Health Care".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.homeBottom,
|
|
|
|
|
// bgColor: AppColors.primaryRedColor,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.homeHealthCarePage,
|
|
|
|
|
// ),
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Virtual Tour".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.my_address,
|
|
|
|
|
// bgColor: AppColors.quickLoginColor,
|
|
|
|
|
// true,
|
|
|
|
|
// route: null,
|
|
|
|
|
// onTap:(){
|
|
|
|
|
// Utils.openWebView(
|
|
|
|
|
// url: 'https://hmgwebservices.com/vt_mobile/html/index.html',
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 3,
|
|
|
|
|
// "Home Health Care".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.homeBottom,
|
|
|
|
|
// bgColor: AppColors.primaryRedColor,
|
|
|
|
|
// true,
|
|
|
|
|
// route: AppRoutes.homeHealthCarePage,
|
|
|
|
|
// ),
|
|
|
|
|
// HmgServicesComponentModel(
|
|
|
|
|
// 11,
|
|
|
|
|
// "Virtual Tour".needTranslation,
|
|
|
|
|
// "".needTranslation,
|
|
|
|
|
// AppAssets.my_address,
|
|
|
|
|
// bgColor: AppColors.quickLoginColor,
|
|
|
|
|
// true,
|
|
|
|
|
// route: null,
|
|
|
|
|
// onTap:(){
|
|
|
|
|
// Utils.openWebView(
|
|
|
|
|
// url: 'https://hmgwebservices.com/vt_mobile/html/index.html',
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// )
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
late final List<HmgServicesComponentModel> hmgHealthToolServices = [
|
|
|
|
|
@ -539,7 +515,6 @@ class ServicesPage extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|