|
|
|
|
@ -287,14 +287,15 @@ class SMSOTP {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkSignature() async {
|
|
|
|
|
// SmsVerification.startListeningSms().then((message) {
|
|
|
|
|
// // setState(() {
|
|
|
|
|
// final intRegex = RegExp(r'\d+', multiLine: true);
|
|
|
|
|
// var otp = SmsVerification.getCode(message, intRegex);
|
|
|
|
|
// _pinPutController.text = otp;
|
|
|
|
|
// onSuccess(otp);
|
|
|
|
|
// // });
|
|
|
|
|
// });
|
|
|
|
|
SmsVerification.startListeningSms().then((message) {
|
|
|
|
|
// setState(() {
|
|
|
|
|
final intRegex = RegExp(r'\d+', multiLine: true);
|
|
|
|
|
var otp = SmsVerification.getCode(message, intRegex);
|
|
|
|
|
_pinPutController.text = otp;
|
|
|
|
|
onSuccess(otp);
|
|
|
|
|
SmsVerification.stopListening();
|
|
|
|
|
// });
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// startLister() {
|
|
|
|
|
|