Untitled

 avatar
unknown
plain_text
4 months ago
997 B
5
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