sms_autofill icon indicating copy to clipboard operation
sms_autofill copied to clipboard

Is it possible can i read OTP and set it as text for controller ? Insted of using PinTextFieldFill can i use TextFormField ?

Open phanindravarma412 opened this issue 3 years ago • 2 comments

phanindravarma412 avatar Dec 22 '21 17:12 phanindravarma412

yes you can, Just use _codeController..text = _code; in onCodeChanged function

sharmaAshish-dev avatar Feb 26 '22 07:02 sharmaAshish-dev

Hi @phanindravarma412 Yes you can by using SmsAutoFill().code;

It returns a Stream of type String.

You can make a StreamBuilder and place a TextField or TextFormField in its builder when the snapshot has data and edit its controller with the snapshot.data

danishkhawaja98 avatar Jan 27 '23 12:01 danishkhawaja98