diff --git a/lib/widgets/otp/sms-popup.dart b/lib/widgets/otp/sms-popup.dart index b6a89573..0162ddbd 100644 --- a/lib/widgets/otp/sms-popup.dart +++ b/lib/widgets/otp/sms-popup.dart @@ -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() { diff --git a/pubspec.yaml b/pubspec.yaml index 50e3551e..ed62d70b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: diplomaticquarterapp description: A new Flutter application. -version: 4.5.074+4050074 +version: 4.5.076+4050076 environment: sdk: ">=3.0.0 <3.13.0"