パッケージ、リポジトリ、アプリカテゴリを検索

keep_keyboard_popup_menu のカバー
パッケージ詳細v2.0.5

keep_keyboard_popup_menu

キーボードを開いたままにするポップアップメニュー。

30日間ダウンロード
27
いいね数
29
Pub ポイント
45

パッケージをインストール

flutter pub add keep_keyboard_popup_menu

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

キーボードをアクティブにしたままポップアップメニューを開いたままにすることができるFlutterパッケージです。これにより、入力作業が中心となるインタラクションにおいて、ユーザー体験をスムーズに保つことができます。特にフォームやテキスト入力の場面で、テキストフィールドからフォーカスを失うことなくメニューからオプションを選択する必要がある場合に非常に役立ちます。このパッケージは、ポップアップメニューがトリガーされたときにキーボードが閉じられないようにすることで、ユーザーのワークフローの一貫性を維持します。シンプルさと信頼性を重視して設計されており、既存のFlutterアプリケーションとスムーズに統合できます。

用途

  • ドロップダウン選択付きのフォーム入力
  • 頻繁にメニューにアクセスが必要なテキストフィールド
  • 継続的なキーボードフォーカスが必要なユーザー・フロー
  • 入力要素を備えたインタラクティブなダイアログ
  • 入力中の動的オプション選択

主な機能

  • メニューが表示された後にキーボードを開放したままにする
  • 最小限のセットアップと統合
  • 標準の TextField ウィジェットと互換性があります
  • インタラクション中に入力フォーカスを維持する
  • 軽量で効率的

適している対象

  • フォーム中心のアプリを開発している開発者
  • 頻繁なメニュー操作を持つアプリ
  • スムーズな入力フローを必要とするUX重視のインターフェース
  • 複雑なデータ入力を持つモバイルアプリ
  • Flutter プロジェクトはユーザーのリテンションを最優先にしています

注意事項

  • モバイルプラットフォームに限定(Web/デスクトップ対応なし)
  • 他のフォーカス管理パッケージと競合する可能性があります
  • ネストされたスクロールコンテキストでは慎重な取り扱いが必要です
  • フルスクリーンのトランジションを必要とするモーダルダイアログには適していません
  • 下位のプラットフォーム固有のキーボード動作に依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

This Library was meant for an old version of flutter (v1) and doesn't work on the new version!

keep_keyboard_popup_menu

A popup menu that will keep the soft keyboard open. This package is created to solve issue #24843 and #50567.

How Does It Work?

Unlike the popup menu created by PopupMenuButton, which works by pushing a new route to the navigator and causes the soft keyboard to hide, the popup menu created by this package works by adding an entry to Overlay and will keep the soft keyboard open.

Quick Start

(I'm sorry for the long names, please pr if there are shorter alternatives.)

KeepKeyboardPopupMenuItem

Intended to replace PopupMenuItem. Works similarly to a ListTile. PopupMenuItem won't work with this package because it will pop the current route when tapped. (This package shows popup menu using overlay, not route.)

KeepKeyboardPopupMenuItem(
    child: Text('awa'),
    onTap: () {},
)

KeepKeyboardPopupMenuButton

Intended to replace PopupMenuButton. Despite the similar name, the usage is quite different. The closePopup passed to the menuItemBuilder is used to programmatically close the popup.

KeepKeyboardPopupMenuButton(
    menuItemBuilder: (context, closePopup) => [
        KeepKeyboardPopupMenuItem(
            child: Text('awa'),
            onTap: closePopup,
        ),
    ]
)

You can also use the menuBuilder property to show any widget you want in the popup menu. For details, see the documentation and example.

WithKeepKeyboardPopupMenu

WithKeepKeyboardPopupMenu allows opening a popup menu on any widget.

WithKeepKeyboardPopupMenu(
    menuItemBuilder: (context, closePopup) => [
        KeepKeyboardPopupMenuItem(
            child: Text('awa'),
            onTap: closePopup,
        ),
    ],
    childBuilder: (context, openPopup) => ElevatedButton(
        onPressed: openPopup,
        child: Text('Custom Trigger'),
    ),
    
)

You can also use the menuBuilder property to show any widget you want in the popup menu, use backgroundBuilder property to customize background of the popup menu, and calculatePopupPosition property to customize the position of the popup menu. For details, see the documentation and example.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。