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