cupertino_interactive_keyboard
一个旨在实现原生 iOS 交互式可关闭键盘的 Flutter 插件。
一个旨在实现原生 iOS 交互式可关闭键盘的 Flutter 插件
以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter plugin intended to achieve native iOS interactively dismissible keyboard. It can be used as temporary solution while we are waiting this issue to be resolved by the Flutter team 🙏. On other side, this plugin doesn't rely on questionable keyboard screenshot approach, so it is expected to work more solid.
https://raw.githubusercontent.com/ky1vstar/cupertino_interactive_keyboard/HEAD/resources/demo1.gif https://raw.githubusercontent.com/ky1vstar/cupertino_interactive_keyboard/HEAD/resources/demo2.gif
The CupertinoInteractiveKeyboard defines the area where the draggable keyboard is enabled.
Using scrollable widget as its child is optional.
CupertinoInteractiveKeyboard(
child: ListView.builder(
...
),
);
In chat-like UI where you have input bar attached to the bottom, you can use the CupertinoInputAccessory widget.
It designed to use its child's height as native input accessory view size.
CupertinoInputAccessory(
child: TextField(
...
),
);
See the full example of complete implementation.