A flutter package to add built-in keyboard instead of system keyboards. This implementation relies on a textInputField and interacts with it through a TextEditingController
.
First of all, add the package to your dependencies and run flutter pub get
.
dependencies:
built_in_keyboard:
git:
url: https://github.com/Open-Segmentation-Systems/BuiltInKeyboard.git
ref: main
With the builtInKeyboard
widget, you can easily change the layout of the keyboard, the look and feel of the keys, etc.
Here are some attributes that you could change. keep in mind that the controller is required to make the keyboard work correctly.
BuiltInKeyboard(
controller: this.textController, // required
layoutType: 'EN', // Only QWERTY and AZERTY are currently available
enableUppercaseAll: true, // makes the keys uppercase
borderRadius: BorderRadius.circular(8.0), // changes the border radius of the key
letterStyle: TextStyle(fontSize: 25, color: Colors.black) // styles the text inside a key
)
Option | Required | By default | Description |
---|---|---|---|
controller | yes | - | TextEditingController |
layoutType | yes | - | the layout of the keyboard |
height | no | - | height of keys |
width | no | - | width of keys |
spacing | no | 8.0 | the spacing between each row |
borderRadius | no | - | the radius of the keys |
letterStyle | no | fontSize: 25, color: black | TextStyle of the letters |
color | no | deepOrange | color of the keys (keyboard color) |
enableSpacebar | no | false | adds a spacebar |
enableBackSpace | no | true | adds a backspace button |
enableCapsLock | no | false | adds a Caps Lock button |
enableAllUppercase | no | false | makes the keyboard uppercase |
enableLongPressUppercase | no | false | writes an uppercase when long pressing on the keys |
highlightColor | no | - | color when pressed |
splashColor | no | - | color when pressed (material style) |