Add Doctor response rate comments validation

merge-update-with-lab-changes
haroon amjad 3 years ago
parent 5d6b50a1da
commit 047877fb08

@ -210,7 +210,11 @@ class _ViewDoctorResponsesPageState extends State<ViewDoctorResponsesPage> {
child: DefaultButton(
TranslationBase.of(context).submit,
() {
rateDoctorResponse();
if (textController.text.isEmpty) {
AppToast.showErrorToast(message: "Please enter comments");
} else {
rateDoctorResponse();
}
},
color: CustomColors.accentColor,
),

Loading…
Cancel
Save