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}) {