Untitled
unknown
plain_text
a year ago
997 B
6
Indexable
context.read<OtpProvider>().isOtpDialogBoxThere = false;
await LoginOtpService().initiateOtpProcess(
widget.mobileController.text,
context,
);
String newOtpReference = loginOtpProvider.otpReference;
if (newOtpReference.isNotEmpty) {
// if (context
// .read<OtpProvider>()
// .isOtpDialogBoxThere) {
// Navigator.of(context).pop();
_showOtpDialog(context, newOtpReference);
// }
} else {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Unable to Send OTP'),
),
);
}Editor is loading...
Leave a Comment