Im-Kevin / cool_ui

用flutter实现一些我认为好看的UI控件,有Popover,仿Weui的Toast,自定义键盘
Apache License 2.0
460 stars 74 forks source link

Can this plugin work without creating a customised keyboard ? #27

Closed MsXam closed 4 years ago

MsXam commented 5 years ago

Im looking into using this KEYBOARD plugin to add a close button to the ON SCREEN KEYBOARD for when focus is made on a textfield. Looking at the example code, from what I can see - there is no way to using the existing keyboard that is shown in iOS or Android ? You have to create your own customised keyboard and register this ? is this correct ? Ideally I just want to overlay the on screen keyboard with something like an Input Accessory View in iOS which I was hoping this plugin would provide.

Im-Kevin commented 5 years ago

Do you mean that you only use a custom keyboard on one platform?

MsXam commented 5 years ago

No, hopefully this gif will explain. Here you can see a few textfields. One is made as MultiLine and has an InputAction as Return (Meaning we can add new lines to the textfield) - however , there is no DONE button so need to overlay the on screen keyboard with a Close button. Here you can see there is an X to accomplish this. So was wondering if your plugin does the same ?

closebutton

Im-Kevin commented 5 years ago

Sorry, my plugin doesn't support this effect, but you can check it out. Https://pub.dev/packages/keyboard_actions

MsXam commented 5 years ago

Thanks - have seen that but there are issues with this. Hopefully the InputAccessoryWidget will arrive soon ...

Im-Kevin commented 5 years ago

You can consider writing a copy yourself with Stack. MediaQueryData.viewInsets.bottom is the height of the keyboard