|
|
|
|
@ -117,38 +117,38 @@ class _RegionBottomSheetBodyState extends State<RegionBottomSheetBody> {
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.5,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Consumer<AppointmentViaRegionViewmodel>(
|
|
|
|
|
builder: (context, regionVM, _) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 4.w, vertical: 8.h),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.location, iconColor: AppColors.greyTextColor, width: 24.h, height: 24.h),
|
|
|
|
|
SizedBox(width: 12.w),
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.sortByLocation.tr(context: context).toText14(isBold: true),
|
|
|
|
|
// SizedBox(height: 4.h),
|
|
|
|
|
LocaleKeys.sortByNearestLocation.tr(context: context).toText11(color: AppColors.textColorLight, weight: FontWeight.w500),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Switch(
|
|
|
|
|
value: regionVM.sortByLocation,
|
|
|
|
|
onChanged: (value) => _handleSortByLocationToggle(value),
|
|
|
|
|
activeThumbColor: AppColors.successColor,
|
|
|
|
|
activeTrackColor: AppColors.successColor.withValues(alpha: 0.15),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
// Consumer<AppointmentViaRegionViewmodel>(
|
|
|
|
|
// builder: (context, regionVM, _) {
|
|
|
|
|
// return Padding(
|
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: 4.w, vertical: 8.h),
|
|
|
|
|
// child: Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Utils.buildSvgWithAssets(icon: AppAssets.location, iconColor: AppColors.greyTextColor, width: 24.h, height: 24.h),
|
|
|
|
|
// SizedBox(width: 12.w),
|
|
|
|
|
// Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// LocaleKeys.sortByLocation.tr(context: context).toText14(isBold: true),
|
|
|
|
|
// // SizedBox(height: 4.h),
|
|
|
|
|
// LocaleKeys.sortByNearestLocation.tr(context: context).toText11(color: AppColors.textColorLight, weight: FontWeight.w500),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// Switch(
|
|
|
|
|
// value: regionVM.sortByLocation,
|
|
|
|
|
// onChanged: (value) => _handleSortByLocationToggle(value),
|
|
|
|
|
// activeThumbColor: AppColors.successColor,
|
|
|
|
|
// activeTrackColor: AppColors.successColor.withValues(alpha: 0.15),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
itemCount: myAppointmentsVM.hospitalList?.registeredDoctorMap?.length ?? 0,
|
|
|
|
|
|