|
|
|
|
@ -7,6 +7,7 @@ import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsLis
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/dialogs/confirm_dialog.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
|
@ -402,6 +403,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
insertAppointment(context, DoctorList docObject) {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
AppoitmentAllHistoryResultList appo;
|
|
|
|
|
widget.service
|
|
|
|
|
.insertAppointment(
|
|
|
|
|
@ -445,8 +447,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
AppToast.showErrorToast(message: err);
|
|
|
|
|
print(err);
|
|
|
|
|
}).showProgressBar(
|
|
|
|
|
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
insertLiveCareScheduledAppointment(context, DoctorList docObject) {
|
|
|
|
|
@ -508,8 +509,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
navigateToBookSuccess(context, docObject, widget.patientShareResponse);
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
}).showProgressBar(
|
|
|
|
|
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getLiveCareAppointmentPatientShare(context, String appointmentNo,
|
|
|
|
|
@ -581,6 +581,7 @@ class _BookConfirmState extends State<BookConfirm> {
|
|
|
|
|
|
|
|
|
|
Future navigateToBookSuccess(context, DoctorList docObject,
|
|
|
|
|
PatientShareResponse patientShareResponse) async {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
|