fixed issue in otp

This commit is contained in:
2025-03-25 17:41:49 +05:30
parent cd7d33eace
commit 807a4da216
6 changed files with 10 additions and 34 deletions

View File

@@ -52,6 +52,14 @@ class OrderProvider extends ChangeNotifier {
return result.fold(
(error) {
context.showLoader(show: false);
Fluttertoast.showToast(
msg: error.message,
toastLength: Toast.LENGTH_SHORT,
gravity: ToastGravity.BOTTOM,
backgroundColor: Colors.red,
textColor: Colors.white,
fontSize: 14.0,
);
},
(response) {
_showOtpPopup(context, response.code!); //