fixed issue in otp
This commit is contained in:
@@ -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!); //
|
||||
|
||||
Reference in New Issue
Block a user