|
|
|
|
@ -6,7 +6,8 @@ import 'package:diplomaticquarterapp/core/viewModels/feedback/feedback_view_mode
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/appoDetailsButtons.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/toDoCountProviderModel.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/widgets/reminder_dialog.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/AppointmentType.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/ArrivedButtons.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/models/AskDocRequestTypeModel.dart';
|
|
|
|
|
@ -17,6 +18,7 @@ import 'package:diplomaticquarterapp/pages/MyAppointments/models/ConfirmedButton
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/PrescriptionReport.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/askDocDialog.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/MyAppointments/widgets/reminder_dialog.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/feedback/feedback_home_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/insurance/insurance_approval_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/labs/laboratory_result_page.dart';
|
|
|
|
|
@ -24,7 +26,9 @@ import 'package:diplomaticquarterapp/pages/medical/radiology/radiology_details_p
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/medical/vital_sign/vital_sign_details_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/services/clinic_services/get_clinic_service.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/CalendarUtils.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/data_display/medical/medical_profile_item.dart';
|
|
|
|
|
@ -153,7 +157,6 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_handleButtonClicks(AppoDetailsButton) {
|
|
|
|
|
|
|
|
|
|
switch (AppoDetailsButton.caller) {
|
|
|
|
|
case "openReschedule":
|
|
|
|
|
widget.tabController.animateTo((widget.tabController.index + 1) % 2);
|
|
|
|
|
@ -182,7 +185,18 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "addReminder":
|
|
|
|
|
showReminderDialog(widget.appo);
|
|
|
|
|
// showReminderDialog(widget.appo);
|
|
|
|
|
showReminderDialog(
|
|
|
|
|
context,
|
|
|
|
|
DateUtil.convertStringToDate(widget.appo.appointmentDate),
|
|
|
|
|
widget.appo.doctorNameObj,
|
|
|
|
|
"",
|
|
|
|
|
DateUtil.formatDateToDate(DateUtil.convertStringToDate(widget.appo.appointmentDate)),
|
|
|
|
|
DateUtil.formatDateToTime(DateUtil.convertStringToDate(widget.appo.appointmentDate)),
|
|
|
|
|
onSuccess: () {
|
|
|
|
|
AppToast.showSuccessToast(message: TranslationBase.of(context).reminderSuccess);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "goToTodoList":
|
|
|
|
|
@ -502,32 +516,35 @@ class _AppointmentActionsState extends State<AppointmentActions> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showReminderDialog(AppoitmentAllHistoryResultList appo) {
|
|
|
|
|
showGeneralDialog(
|
|
|
|
|
barrierColor: Colors.black.withOpacity(0.5),
|
|
|
|
|
transitionBuilder: (context, a1, a2, widget) {
|
|
|
|
|
final curvedValue = Curves.easeInOutBack.transform(a1.value) - 1.0;
|
|
|
|
|
return Transform(
|
|
|
|
|
transform: Matrix4.translationValues(0.0, curvedValue * 200, 0.0),
|
|
|
|
|
child: Opacity(
|
|
|
|
|
opacity: a1.value,
|
|
|
|
|
child: ReminderDialog(
|
|
|
|
|
eventId: appo.appointmentNo.toString(),
|
|
|
|
|
title: "Doctor Appointment",
|
|
|
|
|
description: "You have an appointment with " + appo.doctorTitle + " " + appo.doctorNameObj,
|
|
|
|
|
startDate: appo.appointmentDate,
|
|
|
|
|
endDate: appo.appointmentDate,
|
|
|
|
|
location: appo.projectName,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
transitionDuration: Duration(milliseconds: 500),
|
|
|
|
|
barrierDismissible: true,
|
|
|
|
|
barrierLabel: '',
|
|
|
|
|
context: context,
|
|
|
|
|
pageBuilder: (context, animation1, animation2) {});
|
|
|
|
|
}
|
|
|
|
|
// showReminderDialog(AppoitmentAllHistoryResultList appo) {
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// //old reminder dialog having location
|
|
|
|
|
// showGeneralDialog(
|
|
|
|
|
// barrierColor: Colors.black.withOpacity(0.5),
|
|
|
|
|
// transitionBuilder: (context, a1, a2, widget) {
|
|
|
|
|
// final curvedValue = Curves.easeInOutBack.transform(a1.value) - 1.0;
|
|
|
|
|
// return Transform(
|
|
|
|
|
// transform: Matrix4.translationValues(0.0, curvedValue * 200, 0.0),
|
|
|
|
|
// child: Opacity(
|
|
|
|
|
// opacity: a1.value,
|
|
|
|
|
// child: ReminderDialog(
|
|
|
|
|
// eventId: appo.appointmentNo.toString(),
|
|
|
|
|
// title: "Doctor Appointment",
|
|
|
|
|
// description: "You have an appointment with " + appo.doctorTitle + " " + appo.doctorNameObj,
|
|
|
|
|
// startDate: appo.appointmentDate,
|
|
|
|
|
// endDate: appo.appointmentDate,
|
|
|
|
|
// location: appo.projectName,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// transitionDuration: Duration(milliseconds: 500),
|
|
|
|
|
// barrierDismissible: true,
|
|
|
|
|
// barrierLabel: '',
|
|
|
|
|
// context: context,
|
|
|
|
|
// pageBuilder: (context, animation1, animation2) {});
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
askYourDoc() {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
|