lokesh-sudhakar / Flutter-OtpScreen

A new Flutter package which helps developer in creating Otp screen with few lines of code.
Other
10 stars 7 forks source link

How to auto-populate the fields? #2

Open DrMkcTheHandSome opened 3 years ago

DrMkcTheHandSome commented 3 years ago

So i have another function that is same with gcash. it allows to auto populate the text fields once the user receive the otp.

The logic behind it good now but I'm not sure on how can I auto populate the code in text field and pragmatically insert data on it

lokesh-sudhakar commented 3 years ago

u need to use the broadcast receiver to scan every message notification. and apply regex on it, to get the OTP. once you get it. you can modify the library code to populate the OTP.

Currently, it's not implemented. Thanks for the suggestion i will add this functionality in future