Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputFormatter Digits Only #1

Closed
cenezoic123 opened this issue Jul 2, 2020 · 1 comment
Closed

InputFormatter Digits Only #1

cenezoic123 opened this issue Jul 2, 2020 · 1 comment

Comments

@cenezoic123
Copy link

I hope inputFormatters property in OTPTextField will be added,
so that we can restrict what type of characters that user can input in the textfield .

ex.
inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],

@iamvivekkaushik
Copy link
Owner

Hi, you can achieve this by using the keyboard type property in the constructor.

this.keyboardType = TextInputType.number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants