@ -34,6 +34,7 @@ import 'package:hmg_patient_app_new/services/dialog_service.dart';
import ' package:hmg_patient_app_new/services/error_handler_service.dart ' ;
import ' package:hmg_patient_app_new/services/navigation_service.dart ' ;
import ' package:hmg_patient_app_new/widgets/common_bottom_sheet.dart ' ;
import ' package:hmg_patient_app_new/widgets/loader/bottomsheet_loader.dart ' ;
import ' package:hmg_patient_app_new/widgets/routes/custom_page_route.dart ' ;
import ' models/resp_models/get_livecare_clinics_response_model.dart ' ;
@ -838,16 +839,11 @@ class BookAppointmentsViewModel extends ChangeNotifier {
appointmentDate: apiResponse . data [ " SameClinicApptList " ] [ 0 ] [ ' AppointmentDate ' ] ,
) ;
showCommonBottomSheet ( navigationService . navigatorKey . currentContext ! ,
child: Utils . getLoadingWidget ( loadingText: LocaleKeys . cancellingAppointmentPleaseWait . tr ( ) ) ,
callBackFunc: ( str ) { } ,
title: " " ,
height: ResponsiveExtension . screenHeight * 0.3 ,
isCloseButtonVisible: false ,
isDismissible: false ,
isFullScreen: false ) ;
LoaderBottomSheet . showLoader (
loadingText: LocaleKeys . reschedulingAppo . tr ( context: navigationService . navigatorKey . currentContext ! ) ,
) ;
await cancelAppointment ( patientAppointmentHistoryResponseModel: patientAppointmentHistoryResponseModel ) . then ( ( val ) async {
navigationService. pop ( ) ;
LoaderBottomSheet . hideLoader ( ) ;
Future . delayed ( Duration ( milliseconds: 50 ) ) . then ( ( value ) async { } ) ;
LoadingUtils . showFullScreenLoader ( barrierDismissible: true , isSuccessDialog: false , loadingText: LocaleKeys . bookingYourAppointment . tr ( ) ) ;
await insertSpecificAppointment (