|
|
|
|
@ -60,6 +60,9 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
|
bookAppointmentsViewModel.getLocation();
|
|
|
|
|
immediateLiveCareViewModel.initImmediateLiveCare();
|
|
|
|
|
});
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
|
showUnKnownClinicBottomSheet();
|
|
|
|
|
});
|
|
|
|
|
super.initState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -313,10 +316,10 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
|
],
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h);
|
|
|
|
|
case 1:
|
|
|
|
|
//TODO: Get LiveCare type Select UI from Hussain
|
|
|
|
|
//TODO: Get LiveCare type Select UI from Hussain
|
|
|
|
|
return appState.isAuthenticated
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: AppColors.whiteColor,
|
|
|
|
|
@ -447,9 +450,9 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
|
LocaleKeys.notSureHelpMeChooseClinic.tr(context: context).toText16(weight: FontWeight.w600, color: AppColors.textColor),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
LocaleKeys.mentionYourSymptomsAndFindDoctors.tr(context: context).toText12(
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
color: AppColors.greyTextColor,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -470,10 +473,13 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
|
regionalViewModel.flush();
|
|
|
|
|
regionalViewModel.setBottomSheetType(type);
|
|
|
|
|
// 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, __) {
|
|
|
|
|
return getRegionalSelectionWidget(data);
|
|
|
|
|
}), callBackFunc: () {});
|
|
|
|
|
return getRegionalSelectionWidget(data);
|
|
|
|
|
}),
|
|
|
|
|
callBackFunc: () {});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getRegionalSelectionWidget(AppointmentViaRegionViewmodel data) {
|
|
|
|
|
@ -632,4 +638,53 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
|
],
|
|
|
|
|
).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: () {},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|