|
|
|
|
@ -184,7 +184,7 @@ class AddRescheduleLeavScreen extends StatelessWidget {
|
|
|
|
|
AppText(getDoctor(
|
|
|
|
|
model
|
|
|
|
|
.coveringDoctors,
|
|
|
|
|
item.doctorId))
|
|
|
|
|
item.coveringDoctorId))
|
|
|
|
|
])
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
AppText(
|
|
|
|
|
@ -298,7 +298,7 @@ class AddRescheduleLeavScreen extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
getDoctor(model, doctorId) {
|
|
|
|
|
var obj;
|
|
|
|
|
obj = model.where((i) => i['doctorID'] == doctorId).toList();
|
|
|
|
|
obj = model.where((i) => i['doctorID'].toString() == doctorId).toList();
|
|
|
|
|
print(obj);
|
|
|
|
|
|
|
|
|
|
return obj.length > 0 ? obj[0]['doctorName'] : "";
|
|
|
|
|
|