6

In flutter, is it possible to customize the keyboard keys. For example, I want to disable , - and |_| keys in this keyboard, so that TextField only allows numbers. Snapshot of keyboard

2 Answers 2

5

You can disable the native keyboard by intercepting the PlatformChannel.

I wrote the plugin cool-ui to achieve the effect.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

4

You can change your keyboard type using for exemple

keyboardType: TextInputType.number,

or you can try to build your custom Keyboard.

this plugin can be goood keyboard_actions to add functionality to the existing keyboard.

1 Comment

yes i did use TextInputType...that's how this keyboard came up... but , - aren't of use if currency has to be typed in...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.