|
|
|
|
@ -15,6 +15,7 @@ import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/book_appointments_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/models/resp_models/doctors_list_response_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/contact_us/contact_us_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/contact_us/models/feedback_type.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/lab/lab_view_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/models/resp_models/patient_appointment_history_response_model.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/my_appointments_view_model.dart';
|
|
|
|
|
@ -92,6 +93,7 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
title: LocaleKeys.appointmentDetails.tr(context: context),
|
|
|
|
|
report: AppointmentType.isArrived(widget.patientAppointmentHistoryResponseModel)
|
|
|
|
|
? () {
|
|
|
|
|
contactUsViewModel.setSelectedFeedbackType(FeedbackType(id: 1, nameEN: "Complaint for appointment", nameAR: 'شكوى على موعد'));
|
|
|
|
|
contactUsViewModel.setPatientFeedbackSelectedAppointment(widget.patientAppointmentHistoryResponseModel);
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
@ -216,9 +218,6 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
child: Image.network(
|
|
|
|
|
"https://maps.googleapis.com/maps/api/staticmap?center=${widget.patientAppointmentHistoryResponseModel.latitude},${widget.patientAppointmentHistoryResponseModel.longitude}&zoom=14&size=${(MediaQuery.of(context).size.width * 1.5).toInt()}x165&maptype=roadmap&markers=color:red%7C${widget.patientAppointmentHistoryResponseModel.latitude},${widget.patientAppointmentHistoryResponseModel.longitude}&key=${ApiKeyConstants.googleMapsApiKey}",
|
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
|
// errorBuilder: (cxt, child, tr) {
|
|
|
|
|
// return SizedBox.shrink();
|
|
|
|
|
// },
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
@ -756,9 +755,10 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
],
|
|
|
|
|
).paddingOnly(left: 16.h, top: 24.h, right: 16.h, bottom: 0.h),
|
|
|
|
|
AppointmentType.isArrived(widget.patientAppointmentHistoryResponseModel)
|
|
|
|
|
? CustomButton(
|
|
|
|
|
text: LocaleKeys.rebookAppointment.tr(context: context),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
? !widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment!
|
|
|
|
|
? CustomButton(
|
|
|
|
|
text: LocaleKeys.rebookAppointment.tr(context: context),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
openDoctorScheduleCalendar();
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.successColor,
|
|
|
|
|
@ -772,7 +772,8 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
|
|
|
|
|
icon: AppAssets.add_icon,
|
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
|
iconSize: 18.h,
|
|
|
|
|
).paddingSymmetrical(16.h, 24.h)
|
|
|
|
|
).paddingSymmetrical(16.h, 24.h)
|
|
|
|
|
: SizedBox.shrink()
|
|
|
|
|
: CustomButton(
|
|
|
|
|
text: AppointmentType.getNextActionText(widget.patientAppointmentHistoryResponseModel.nextAction),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|