Show Date check added in DoctorView

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 3792a67ae7
commit b4138b2066

@ -65,6 +65,7 @@ class _SearchResultsState extends State<SearchResults> {
isObGyneAppointment: widget.isObGyneAppointment, isObGyneAppointment: widget.isObGyneAppointment,
isDoctorNameSearch: widget.isDoctorNameSearch, isDoctorNameSearch: widget.isDoctorNameSearch,
obGyneProcedureListResponse: widget.obGyneProcedureListResponse, obGyneProcedureListResponse: widget.obGyneProcedureListResponse,
isShowDate: false,
onTap: () { onTap: () {
projectViewModel.analytics.appointment.book_appointment_select_doctor(appointment_type: 'regular', doctor: doctor); projectViewModel.analytics.appointment.book_appointment_select_doctor(appointment_type: 'regular', doctor: doctor);
}); });

@ -31,6 +31,7 @@ class DoctorView extends StatelessWidget {
bool isContinueDentalPlan; bool isContinueDentalPlan;
OBGyneProcedureListResponse obGyneProcedureListResponse; OBGyneProcedureListResponse obGyneProcedureListResponse;
final VoidCallback onTap; final VoidCallback onTap;
bool isShowDate;
DoctorView( DoctorView(
{@required this.doctor, {@required this.doctor,
@ -39,6 +40,7 @@ class DoctorView extends StatelessWidget {
this.isDoctorNameSearch = false, this.isDoctorNameSearch = false,
this.isContinueDentalPlan = false, this.isContinueDentalPlan = false,
this.isShowFlag = true, this.isShowFlag = true,
this.isShowDate = true,
this.onTap, this.onTap,
this.obGyneProcedureListResponse}); this.obGyneProcedureListResponse});
@ -55,7 +57,7 @@ class DoctorView extends StatelessWidget {
// if (doctor.clinicID == 17 && isDoctorNameSearch) { // if (doctor.clinicID == 17 && isDoctorNameSearch) {
// showDentalChiefComplaintsList(context); // showDentalChiefComplaintsList(context);
// } else // } else
if (isShowFlag) { if (isShowFlag) {
getDoctorsProfile(context, doctor, isAppo: true, isContinueDentalPlan: isContinueDentalPlan); getDoctorsProfile(context, doctor, isAppo: true, isContinueDentalPlan: isContinueDentalPlan);
} }
(onTap ?? () {})(); // For log analytics of doctor click from book appointment (onTap ?? () {})(); // For log analytics of doctor click from book appointment
@ -89,10 +91,10 @@ class DoctorView extends StatelessWidget {
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64, height: 25 / 16), style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64, height: 25 / 16),
), ),
), ),
Text( isShowDate ? Text(
DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(doctor.date)), DateUtil.getDayMonthYearDateFormatted(DateUtil.convertStringToDate(doctor.date)),
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), style: TextStyle(fontSize: 14, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12),
), ) : Container(),
], ],
), ),
if (doctor.doctorTitle != null) SizedBox(height: 6), if (doctor.doctorTitle != null) SizedBox(height: 6),
@ -171,9 +173,14 @@ class DoctorView extends StatelessWidget {
searchInfo.hospital = selectedHospital; searchInfo.hospital = selectedHospital;
searchInfo.clinic = selectedClinic; searchInfo.clinic = selectedClinic;
showDraggableDialog(context, DentalComplaints(isDoctorNameSearch: true, onSelectedMethod: () { showDraggableDialog(
Navigator.pop(context); context,
}, searchInfo: searchInfo)); DentalComplaints(
isDoctorNameSearch: true,
onSelectedMethod: () {
Navigator.pop(context);
},
searchInfo: searchInfo));
} }
String getDoctorSpeciality(List<String> docSpecial) { String getDoctorSpeciality(List<String> docSpecial) {

Loading…
Cancel
Save