speech to tex

merge-update-with-lab-changes
Sultan Khan 6 years ago
parent 130fb53a65
commit f1e0bcf86e

@ -206,12 +206,13 @@ class _SearchBot extends State<BottomBarSearch> {
if (result['ProjectId'] != 0 && if (result['ProjectId'] != 0 &&
result['ClinicId'] != 0 && result['ClinicId'] != 0 &&
result['DoctorId'] != 0) { result['DoctorId'] != 0) {
var name = result['DoctorName'].replaceAll('دكتور', '');
getDoctorsList( getDoctorsList(
result['ProjectId'], result['ProjectId'],
result['ClinicId'], result['ClinicId'],
context, context,
doctorId: result['DoctorId'], doctorId: result['DoctorId'],
doctorName: result['DoctorName'], doctorName: name.trim(),
); );
} else if (result['ProjectId'] != 0 && } else if (result['ProjectId'] != 0 &&
result['ClinicId'] != 0 && result['ClinicId'] != 0 &&
@ -232,12 +233,13 @@ class _SearchBot extends State<BottomBarSearch> {
} else if (result['ProjectId'] == 0 && } else if (result['ProjectId'] == 0 &&
result['ClinicId'] != 0 && result['ClinicId'] != 0 &&
result['DoctorId'] != 0) { result['DoctorId'] != 0) {
var name = result['DoctorName'].replaceAll('دكتور', '');
getDoctorsList( getDoctorsList(
result['ProjectId'], result['ProjectId'],
result['ClinicId'], result['ClinicId'],
context, context,
doctorId: result['DoctorId'], doctorId: result['DoctorId'],
doctorName: result['DoctorName'], doctorName: name.trim(),
); );
} else { } else {
Navigator.push( Navigator.push(
@ -304,8 +306,7 @@ class _SearchBot extends State<BottomBarSearch> {
} }
}).catchError((err) { }).catchError((err) {
print(err); print(err);
}).showProgressBar( });
text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6));
} }
getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) { getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) {

Loading…
Cancel
Save