iamvivekkaushik/OTPTextField

Decimal keyboard is switching to alphanumeric keyboard in last digit.

Opened this issue · 1 comments

otp_text_field: ^1.1.3

OTPTextField( keyboardType: TextInputType.number, inputFormatter: [FilteringTextInputFormatter.digitsOnly], length: 4, width: MediaQuery.of(context).size.width, textFieldAlignment: MainAxisAlignment.spaceAround, fieldWidth: 35, fieldStyle: FieldStyle.underline, onChanged: (value) { print("value:$value"); }, style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), onCompleted: (pin) { context.read<PinConfirmBloc>().add(PinChanged(pin)); }, ),

Screenshot 2024-07-29 at 12 00 40 PM
PIN_Issue.mov

Using inputFormatter: [FilteringTextInputFormatter.digitsOnly] is restricting characters, but the keyboard still switches in the last field.

@iamvivekkaushik any update on this issue?