|
|
|
@ -8,6 +8,7 @@ import 'package:hmg_patient_app_new/core/utils/utils.dart';
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
|
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
|
|
|
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/book_appointments_view_model.dart';
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/features/book_appointments/models/resp_models/get_clinic_list_response_model.dart';
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/my_appointments_view_model.dart';
|
|
|
|
import 'package:hmg_patient_app_new/features/my_appointments/my_appointments_view_model.dart';
|
|
|
|
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
|
|
|
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/widgets/appointment_calendar.dart';
|
|
|
|
import 'package:hmg_patient_app_new/presentation/book_appointment/widgets/appointment_calendar.dart';
|
|
|
|
@ -240,6 +241,14 @@ class DoctorProfilePage extends StatelessWidget {
|
|
|
|
bookAppointmentsViewModel.selectedDoctor.clinicName = bookAppointmentsViewModel.doctorsProfileResponseModel.clinicDescription;
|
|
|
|
bookAppointmentsViewModel.selectedDoctor.clinicName = bookAppointmentsViewModel.doctorsProfileResponseModel.clinicDescription;
|
|
|
|
bookAppointmentsViewModel.selectedDoctor.projectName = bookAppointmentsViewModel.doctorsProfileResponseModel.projectName;
|
|
|
|
bookAppointmentsViewModel.selectedDoctor.projectName = bookAppointmentsViewModel.doctorsProfileResponseModel.projectName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final clinic = GetClinicsListResponseModel(
|
|
|
|
|
|
|
|
clinicID: bookAppointmentsViewModel.doctorsProfileResponseModel.clinicID,
|
|
|
|
|
|
|
|
clinicDescription: bookAppointmentsViewModel.doctorsProfileResponseModel.clinicDescription,
|
|
|
|
|
|
|
|
clinicDescriptionN: bookAppointmentsViewModel.doctorsProfileResponseModel.clinicDescription,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bookAppointmentsViewModel.setSelectedClinic(clinic);
|
|
|
|
|
|
|
|
|
|
|
|
LoaderBottomSheet.showLoader();
|
|
|
|
LoaderBottomSheet.showLoader();
|
|
|
|
bookAppointmentsViewModel.isLiveCareSchedule
|
|
|
|
bookAppointmentsViewModel.isLiveCareSchedule
|
|
|
|
? await bookAppointmentsViewModel.getLiveCareDoctorFreeSlots(
|
|
|
|
? await bookAppointmentsViewModel.getLiveCareDoctorFreeSlots(
|
|
|
|
|