Wd: Unware clinic bottom sheet shown on appointment page.

unware-clinic-bottomsheet
tahaalam 3 months ago
parent 245b66150f
commit f78eb5da67

@ -1524,7 +1524,7 @@
"medicalServices": "الخدمات الطبية", "medicalServices": "الخدمات الطبية",
"insuranceAndPayments": "التأمين والمدفوعات", "insuranceAndPayments": "التأمين والمدفوعات",
"trackerAndOthers": "المتتبع وأخرى", "trackerAndOthers": "المتتبع وأخرى",
"bmi": "مؤشر كتلة الجسم" "bmi": "مؤشر كتلة الجسم",
"yesPleaseINeedHelp": "نعم، من فضلك أريد المساعدة",
"noThanksIKnowTheClinic": "لا شكراً، أعرف العيادة"
} }

@ -1515,7 +1515,8 @@
"medicalServices": "Medical Services", "medicalServices": "Medical Services",
"insuranceAndPayments": "Insurance & Payments", "insuranceAndPayments": "Insurance & Payments",
"trackerAndOthers": "Tracker & Others", "trackerAndOthers": "Tracker & Others",
"bmi": "BMI" "bmi": "BMI",
"yesPleaseINeedHelp": "Yes, Please I need help",
"noThanksIKnowTheClinic": "No, Thanks. I Know the clinic"
} }

@ -1512,5 +1512,7 @@ abstract class LocaleKeys {
static const insuranceAndPayments = 'insuranceAndPayments'; static const insuranceAndPayments = 'insuranceAndPayments';
static const trackerAndOthers = 'trackerAndOthers'; static const trackerAndOthers = 'trackerAndOthers';
static const bmi = 'bmi'; static const bmi = 'bmi';
static const yesPleaseINeedHelp = 'yesPleaseINeedHelp';
static const noThanksIKnowTheClinic = 'noThanksIKnowTheClinic';
} }

@ -60,6 +60,9 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
bookAppointmentsViewModel.getLocation(); bookAppointmentsViewModel.getLocation();
immediateLiveCareViewModel.initImmediateLiveCare(); immediateLiveCareViewModel.initImmediateLiveCare();
}); });
WidgetsBinding.instance.addPostFrameCallback((_) {
showUnKnownClinicBottomSheet();
});
super.initState(); super.initState();
} }
@ -470,10 +473,13 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
regionalViewModel.flush(); regionalViewModel.flush();
regionalViewModel.setBottomSheetType(type); regionalViewModel.setBottomSheetType(type);
// AppointmentViaRegionViewmodel? viewmodel = null; // AppointmentViaRegionViewmodel? viewmodel = null;
showCommonBottomSheetWithoutHeight(context, title: "", titleWidget: Consumer<AppointmentViaRegionViewmodel>(builder: (_, data, __) => getTitle(data)), isDismissible: false, showCommonBottomSheetWithoutHeight(context, title: "",
titleWidget: Consumer<AppointmentViaRegionViewmodel>(builder: (_, data, __) => getTitle(data)),
isDismissible: false,
child: Consumer<AppointmentViaRegionViewmodel>(builder: (_, data, __) { child: Consumer<AppointmentViaRegionViewmodel>(builder: (_, data, __) {
return getRegionalSelectionWidget(data); return getRegionalSelectionWidget(data);
}), callBackFunc: () {}); }),
callBackFunc: () {});
} }
Widget getRegionalSelectionWidget(AppointmentViaRegionViewmodel data) { Widget getRegionalSelectionWidget(AppointmentViaRegionViewmodel data) {
@ -632,4 +638,53 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
], ],
).paddingSymmetrical(24.h, 0.h); ).paddingSymmetrical(24.h, 0.h);
} }
void showUnKnownClinicBottomSheet() {
showCommonBottomSheetWithoutHeight(
context,
title: "",
isDismissible: true,
isCloseButtonVisible: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
LocaleKeys.notSureHelpMeChooseClinic.tr(context: context).toText28(color: AppColors.textColor, isBold: true, height: 1.5),
SizedBox(height: 4.h),
LocaleKeys.mentionYourSymptomsAndFindDoctors.tr(context: context).toText12(color: AppColors.greyTextColor, fontWeight: FontWeight.w500,),
SizedBox(height: 24.h),
CustomButton(
text: LocaleKeys.yesPleaseINeedHelp.tr(context: context),
onPressed: () {
context.pop();
context.navigateWithName(AppRoutes.userInfoSelection);
},
backgroundColor: AppColors.primaryRedColor,
borderColor: AppColors.primaryRedColor,
textColor: AppColors.whiteColor,
fontSize: 16.f,
fontWeight: FontWeight.w500,
borderRadius: 12.r,
// padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
height: 56.h,
),
SizedBox(height: 8.h),
CustomButton(
text: LocaleKeys.noThanksIKnowTheClinic.tr(context: context),
onPressed: () {
context.pop();
},
backgroundColor: AppColors.chipSecondaryLightRedColor,
borderColor: AppColors.chipSecondaryLightRedColor,
textColor: AppColors.primaryRedColor,
fontSize: 16.f,
fontWeight: FontWeight.w500,
borderRadius: 12.r,
// padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
height: 56.h,
),
],
).paddingSymmetrical(24.w, 20.h),
callBackFunc: () {},
);
}
} }

Loading…
Cancel
Save