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

Decimal keyboard is switching to alphanumeric keyboard in last digit. #63

Open
harsh8088 opened this issue Jul 29, 2024 · 1 comment
Open

Comments

@harsh8088
Copy link

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.

@harsh8088
Copy link
Author

@iamvivekkaushik any update on this issue?

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

1 participant