|
|
|
|
@ -44,7 +44,7 @@ class ResultByHospital extends StatelessWidget {
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isDoctorSearchResult: isDoctorSearchResult,
|
|
|
|
|
onHospitalSelected: onHospitalSelected,
|
|
|
|
|
),
|
|
|
|
|
isHMC: isHMCSelected),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
@ -60,6 +60,7 @@ class HospitalBodyWidget extends StatelessWidget {
|
|
|
|
|
final bool isDoctorSearchResult;
|
|
|
|
|
final OBGyneProcedureListResponse? obGyneProcedureListResponse;
|
|
|
|
|
final OnHospitalSelected onHospitalSelected;
|
|
|
|
|
final bool isHMC;
|
|
|
|
|
|
|
|
|
|
const HospitalBodyWidget(
|
|
|
|
|
{super.key,
|
|
|
|
|
@ -69,7 +70,8 @@ class HospitalBodyWidget extends StatelessWidget {
|
|
|
|
|
required this.isDoctorNameSearch,
|
|
|
|
|
required this.isDoctorSearchResult,
|
|
|
|
|
this.obGyneProcedureListResponse,
|
|
|
|
|
required this.onHospitalSelected});
|
|
|
|
|
required this.onHospitalSelected,
|
|
|
|
|
required this.isHMC});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -102,21 +104,38 @@ class HospitalBodyWidget extends StatelessWidget {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection:
|
|
|
|
|
(context.read<ProjectViewModel>().isArabic ==
|
|
|
|
|
true)
|
|
|
|
|
? TextDirection.rtl
|
|
|
|
|
: TextDirection.ltr,
|
|
|
|
|
child: Text(
|
|
|
|
|
patientDoctorAppointmentListHospital![index]
|
|
|
|
|
.filterName ??
|
|
|
|
|
'',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight: FontWeight.w700),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(6.0),
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
isHMC
|
|
|
|
|
? 'assets/images/svg/HMC.svg'
|
|
|
|
|
: 'assets/images/svg/HMG.svg',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Directionality(
|
|
|
|
|
textDirection: (context
|
|
|
|
|
.read<ProjectViewModel>()
|
|
|
|
|
.isArabic ==
|
|
|
|
|
true)
|
|
|
|
|
? TextDirection.rtl
|
|
|
|
|
: TextDirection.ltr,
|
|
|
|
|
child: Text(
|
|
|
|
|
patientDoctorAppointmentListHospital![index]
|
|
|
|
|
.filterName ??
|
|
|
|
|
'',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
color: isHMC
|
|
|
|
|
? Color(0xFF40ACC9)
|
|
|
|
|
: Color(0xFFD02127),
|
|
|
|
|
fontWeight: FontWeight.w700),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
|