|
|
|
@ -200,7 +200,11 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
void openRegionListBottomSheet(BuildContext context) {
|
|
|
|
void openRegionListBottomSheet(BuildContext context) {
|
|
|
|
regionalViewModel.flush();
|
|
|
|
regionalViewModel.flush();
|
|
|
|
// 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: () {});
|
|
|
|
@ -234,9 +238,19 @@ class _BookAppointmentPageState extends State<BookAppointmentPage> {
|
|
|
|
if (data.selectedRegionId == null) {
|
|
|
|
if (data.selectedRegionId == null) {
|
|
|
|
return LocaleKeys.selectRegion.tr().toText20(weight: FontWeight.w600);
|
|
|
|
return LocaleKeys.selectRegion.tr().toText20(weight: FontWeight.w600);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return Utils.buildSvgWithAssets(icon: AppAssets.arrow_back, iconColor: Color(0xff2B353E)).onPress(() {
|
|
|
|
return
|
|
|
|
data.handleBackPress();
|
|
|
|
Transform.flip(
|
|
|
|
});
|
|
|
|
flipX: data.isArabic ? true : false,
|
|
|
|
|
|
|
|
child: Utils.buildSvgWithAssets(
|
|
|
|
|
|
|
|
icon: AppAssets.arrow_back,
|
|
|
|
|
|
|
|
iconColor: Color(0xff2B353E),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
).onPress(() {
|
|
|
|
|
|
|
|
data.handleBackPress();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|