InputFormatter Digits Only
Closed this issue · 1 comments
cenezoic123 commented
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 commented
Hi, you can achieve this by using the keyboard type property in the constructor.
this.keyboardType = TextInputType.number