搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。