From f1e0bcf86eea105ff5dcca857998be2e4661cb51 Mon Sep 17 00:00:00 2001 From: Sultan Khan Date: Mon, 31 Aug 2020 17:54:03 +0300 Subject: [PATCH] speech to tex --- lib/widgets/others/bottom_bar.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/widgets/others/bottom_bar.dart b/lib/widgets/others/bottom_bar.dart index 32df2dfc..ce480abb 100644 --- a/lib/widgets/others/bottom_bar.dart +++ b/lib/widgets/others/bottom_bar.dart @@ -206,12 +206,13 @@ class _SearchBot extends State { if (result['ProjectId'] != 0 && result['ClinicId'] != 0 && result['DoctorId'] != 0) { + var name = result['DoctorName'].replaceAll('دكتور', ''); getDoctorsList( result['ProjectId'], result['ClinicId'], context, doctorId: result['DoctorId'], - doctorName: result['DoctorName'], + doctorName: name.trim(), ); } else if (result['ProjectId'] != 0 && result['ClinicId'] != 0 && @@ -232,12 +233,13 @@ class _SearchBot extends State { } else if (result['ProjectId'] == 0 && result['ClinicId'] != 0 && result['DoctorId'] != 0) { + var name = result['DoctorName'].replaceAll('دكتور', ''); getDoctorsList( result['ProjectId'], result['ClinicId'], context, doctorId: result['DoctorId'], - doctorName: result['DoctorName'], + doctorName: name.trim(), ); } else { Navigator.push( @@ -304,8 +306,7 @@ class _SearchBot extends State { } }).catchError((err) { print(err); - }).showProgressBar( - text: "Loading", backgroundColor: Colors.blue.withOpacity(0.6)); + }); } getDoctorsList(projectId, clinicId, context, {doctorId, doctorName}) {