搜索插件、代码仓与 APP 分类

插件详情v1.0.0

cupertino_interactive_keyboard

一个旨在实现原生 iOS 交互式可关闭键盘的 Flutter 插件。

iOS
近 30 天下载
2880
喜欢数
44
Pub 分数
150

安装插件

flutter pub add cupertino_interactive_keyboard

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 插件,可在 iOS 设备上实现原生 iOS 风格的交互式键盘关闭功能。它允许用户通过向下滑动来关闭键盘,模仿原生 iOS 应用中的行为。该包与 Cupertino 组件无缝集成,提供流畅、符合平台特性的用户体验。此插件专为 iOS 设计,不会影响其他平台。开发者可以轻松实现此功能,无需复杂的自定义手势或变通方法。

适合场景

  • 实现 iOS 原生键盘收起手势
  • 增强面向 iOS 的 Flutter 应用的用户体验
  • 创建直观的输入字段并支持滑动删除
  • 改进与苹果设计指南的一致性
  • 在表单输入中添加交互式键盘行为

主要特点

  • 向下滑动手势以关闭键盘
  • 原生 iOS 交互样式
  • 与 Cupertino 小部件的无缝集成
  • 仅限 iOS 的平台特定实现
  • 所需设置最少

适合对象

  • 以 iOS 为先的 Flutter 应用
  • 针对苹果设计语言的应用程序
  • 寻求原生键盘交互的开发者
  • iOS 上的表单密集型界面
  • 以用户体验为中心的移动应用开发

使用建议

  • 仅适用于iOS设备
  • 不支持 Android 或其他平台
  • 需要 CupertinoApp 或 Cupertino 小部件
  • 可能与自定义键盘手势处理器冲突
  • 仅限键盘关闭,不支持完整键盘自定义

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Stand With Ukraine

Cupertino Interactive Keyboard

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.

Getting Started

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.

所属分类

依赖

依赖清单 1 项

  • plugin_platform_interface^2.0.2

源码仓库

使用此插件的项目

暂无相关数据。