Closed jaumard closed 5 years ago
@jaumard code means abcd? Supporting other input styles of Pin is coming. I think it will publish before the weekend.
No I mean I want something like:
PinInputTextField(
onSubmit: (pin) {
//Add submit action.
},
currentCode: '123456',
pinLength: 6, // The length of the pin
decoration: BoxTightDecoration(), // or BoxLooseDecoration, UnderlineDecoration
width: 300.0,
height: 48.0,
);
That will allow to retrieve the PIN from the SMS and set it automatically on the field :) my widget will wrap this one and provide the PIN.
@jaumard Okay, this feature will include next release.😃😃
awesome ! Thanks @TinoGuo !
@jaumard It's ready in dev branch
thanks I'll try to test it today and let you know :)
It works ! Just one thing, I find it really hard to find out when the field has the focus or not, would it be possible to add a focusColor under PinDecoration ? like this when the field has focus it put the first empty digit as the one with the focus, or if all are filled the last one. What do you think ?
https://github.com/jaumard/sms_autofill :) when you've publish all of this I'll be all good to publish mine too ! Thanks !
@jaumard It has been published just now!
@TinoGuo thanks !! Perfect :)
I'm working on a plugin to autofill sms code, I want to use your widget as textField but for now it doesn't support setting a pin from code. Would it be possible to add this ?
I can do a PR if you don't have time but I want to be sure you'll accept it first :)
Thanks !