|
|
|
|
@ -2,7 +2,6 @@ import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/DoctorListResponse.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/OBGyneProcedureListResponse.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/BookAppointment/widgets/DoctorView.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/pages/pharmacies/screens/pharmacy_module_page.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
|
@ -46,9 +45,11 @@ class SearchResultsByRegion extends StatelessWidget {
|
|
|
|
|
addAutomaticKeepAlives: true,
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: 12,
|
|
|
|
|
margin: EdgeInsets.only(left: 21, right: 21),
|
|
|
|
|
return Material(
|
|
|
|
|
color: Color(0xFFf5f5f5),
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
@ -57,8 +58,10 @@ class SearchResultsByRegion extends StatelessWidget {
|
|
|
|
|
.toList()[index] ??
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
print(' the key is $key');
|
|
|
|
|
return AppExpandableNotifier(
|
|
|
|
|
paddingValue: 10,
|
|
|
|
|
applyBackgroundToOnlyHeader: true,
|
|
|
|
|
completeHeaderColor: CustomColors.appBackgroudGrey2Color,
|
|
|
|
|
headerWidget: RegionTitle(
|
|
|
|
|
title: key,
|
|
|
|
|
hmcCount:
|
|
|
|
|
@ -69,49 +72,64 @@ class SearchResultsByRegion extends StatelessWidget {
|
|
|
|
|
showDropDownIconWithCustomHeader: true,
|
|
|
|
|
isTitleSingleLine: false,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
widgetColor: Color(0xFFF8F8F8),
|
|
|
|
|
bodyWidget: Column(
|
|
|
|
|
children: [
|
|
|
|
|
AppExpandableNotifier(
|
|
|
|
|
headerWidget: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMG.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmgHospital,
|
|
|
|
|
isHMC: false,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[key]?.hmgSize ?? 0}",
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: AppExpandableNotifier(
|
|
|
|
|
paddingValue: 8,
|
|
|
|
|
applyBackgroundColor: false,
|
|
|
|
|
applyBackgroundToOnlyHeader: true,
|
|
|
|
|
completeHeaderColor: Colors.white,
|
|
|
|
|
headerRadius: BorderRadius.circular(16),
|
|
|
|
|
headerWidget: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMG.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmgHospital,
|
|
|
|
|
isHMC: false,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[key]?.hmgSize ?? 0}",
|
|
|
|
|
),
|
|
|
|
|
showDropDownIconWithCustomHeader: true,
|
|
|
|
|
bodyWidget: HospitalBodyWidget(
|
|
|
|
|
patientDoctorAppointmentListHospital:
|
|
|
|
|
patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[key]?.hmgDoctorList,
|
|
|
|
|
isLiveCareAppointment: isLiveCareAppointment,
|
|
|
|
|
isObGyneAppointment: isObGyneAppointment,
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
showDropDownIconWithCustomHeader: true,
|
|
|
|
|
bodyWidget: HospitalBodyWidget(
|
|
|
|
|
patientDoctorAppointmentListHospital:
|
|
|
|
|
patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[key]?.hmgDoctorList,
|
|
|
|
|
isLiveCareAppointment: isLiveCareAppointment,
|
|
|
|
|
isObGyneAppointment: isObGyneAppointment,
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
AppExpandableNotifier(
|
|
|
|
|
headerWidget: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMC.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmcHospital,
|
|
|
|
|
isHMC: true,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[key]?.hmcSize ?? 0}",
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
|
bottom: 8.0, left: 8, right: 8),
|
|
|
|
|
child: AppExpandableNotifier(
|
|
|
|
|
paddingValue: 8,
|
|
|
|
|
applyBackgroundColor: false,
|
|
|
|
|
applyBackgroundToOnlyHeader: true,
|
|
|
|
|
completeHeaderColor: Colors.white,
|
|
|
|
|
headerRadius: BorderRadius.circular(16),
|
|
|
|
|
headerWidget: HospitalTitle(
|
|
|
|
|
iconUrl: 'assets/images/svg/HMC.svg',
|
|
|
|
|
title: TranslationBase.of(context).hmcHospital,
|
|
|
|
|
isHMC: true,
|
|
|
|
|
itemCount:
|
|
|
|
|
"${patientDoctorAppointmentListHospital.registeredDoctorMap?[key]?.hmcSize ?? 0}",
|
|
|
|
|
),
|
|
|
|
|
showDropDownIconWithCustomHeader: true,
|
|
|
|
|
bodyWidget: HospitalBodyWidget(
|
|
|
|
|
patientDoctorAppointmentListHospital:
|
|
|
|
|
patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[key]?.hmcDoctorList,
|
|
|
|
|
isLiveCareAppointment: isLiveCareAppointment,
|
|
|
|
|
isObGyneAppointment: isObGyneAppointment,
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
showDropDownIconWithCustomHeader: true,
|
|
|
|
|
bodyWidget: HospitalBodyWidget(
|
|
|
|
|
patientDoctorAppointmentListHospital:
|
|
|
|
|
patientDoctorAppointmentListHospital
|
|
|
|
|
.registeredDoctorMap?[key]?.hmcDoctorList,
|
|
|
|
|
isLiveCareAppointment: isLiveCareAppointment,
|
|
|
|
|
isObGyneAppointment: isObGyneAppointment,
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
));
|
|
|
|
|
// return AppExpandableNotifier(
|
|
|
|
|
@ -193,6 +211,8 @@ class HospitalBodyWidget extends StatelessWidget {
|
|
|
|
|
},
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return AppExpandableNotifier(
|
|
|
|
|
applyBackgroundColor: false,
|
|
|
|
|
widgetColor: CustomColors.appBackgroudGrey2Color,
|
|
|
|
|
title: (patientDoctorAppointmentListHospital?[index].distanceInKMs !=
|
|
|
|
|
"0")
|
|
|
|
|
? patientDoctorAppointmentListHospital![index].filterName! +
|
|
|
|
|
|