|
|
|
|
@ -41,6 +41,7 @@ class _SelectDoctorPageState extends State<SelectDoctorPage> {
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
scheduleMicrotask(() {
|
|
|
|
|
bookAppointmentsViewModel.setIsNearestAppointmentSelected(false);
|
|
|
|
|
if (bookAppointmentsViewModel.isLiveCareSchedule) {
|
|
|
|
|
bookAppointmentsViewModel.getLiveCareDoctorsList();
|
|
|
|
|
} else {
|
|
|
|
|
@ -105,8 +106,33 @@ class _SelectDoctorPageState extends State<SelectDoctorPage> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
children: [
|
|
|
|
|
// Utils.buildSvgWithAssets(icon: AppAssets.prescription_reminder_icon, width: 35.h, height: 35.h),
|
|
|
|
|
// SizedBox(width: 8.h),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.nearestAppo.tr(context: context).toText13(isBold: true),
|
|
|
|
|
"View nearest available appointments".needTranslation.toText11(color: AppColors.textColorLight, weight: FontWeight.w500),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const Spacer(),
|
|
|
|
|
Switch(
|
|
|
|
|
activeThumbColor: AppColors.successColor,
|
|
|
|
|
activeTrackColor: AppColors.successColor.withValues(alpha: .15),
|
|
|
|
|
value: bookAppointmentsVM.isNearestAppointmentSelected,
|
|
|
|
|
onChanged: (newValue) async {
|
|
|
|
|
bookAppointmentsVM.setIsNearestAppointmentSelected(newValue);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ListView.separated(
|
|
|
|
|
padding: EdgeInsets.only(top: 24.h),
|
|
|
|
|
padding: EdgeInsets.only(top: 16.h),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
itemCount: bookAppointmentsVM.isDoctorsListLoading
|
|
|
|
|
|