Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations, iOS autofill, Android autofill
Is your feature request related to a problem? Please describe.
Hi! I am trying to remove the autofill for web desktop versions.
Having AutofillHits.oneTimeCode prompts desktop web browsers to autofill user passwords in the pin code field.
When using Pinput() constructor, best I can do is provide empty array [] to autofillHints, since if I provide null the value is resolved to:
this.autofillHints = const [
AutofillHints.oneTimeCode,
],
When I provide empty array, there is still autofill configuration created for the input. For desktop web browsers it still hints user passwords for the pin field.
Only way to disable the autofill configuration is to provide null to this property, and only way to do that is to use Pinput.builder()
However, I want to use the widgets provided by you package, and Pinput.builder() forces me to provide a builder.
Describe the solution you'd like
I think the easiest solution would be to make builder in Pinput.builder() nullable. This way I can pass null to autofillHints to remove the autofill (since there isn't a default value in the Pinput.builder() constructor) and I could also pass null to builder so I can use the package provided widgets.
Is your feature request related to a problem? Please describe.
Hi! I am trying to remove the autofill for web desktop versions. Having
AutofillHits.oneTimeCode
prompts desktop web browsers to autofill user passwords in the pin code field.When using
Pinput()
constructor, best I can do is provide empty array[]
toautofillHints
, since if I provide null the value is resolved to: this.autofillHints = const [ AutofillHints.oneTimeCode, ], When I provide empty array, there is still autofill configuration created for the input. For desktop web browsers it still hints user passwords for the pin field.https://github.com/user-attachments/assets/3684ed64-d4c3-4e29-be84-318fa3618105
Only way to disable the autofill configuration is to provide
null
to this property, and only way to do that is to usePinput.builder()
However, I want to use the widgets provided by you package, andPinput.builder()
forces me to provide abuilder
.Describe the solution you'd like I think the easiest solution would be to make
builder
inPinput.builder()
nullable. This way I can passnull
toautofillHints
to remove the autofill (since there isn't a default value in thePinput.builder()
constructor) and I could also passnull
tobuilder
so I can use the package provided widgets.@Tkko