iamvivekkaushik/OTPTextField

InputFormatter Digits Only

Closed this issue · 1 comments

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],

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

this.keyboardType = TextInputType.number