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

field_suggestion のカバー
パッケージ詳細v0.2.6

field_suggestion

カスタマイズ性が高く、シンプルで制御可能な自動補完フィールドを作成します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
643
いいね数
45
Pub ポイント
160

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

flutter pub add field_suggestion

パッケージ概要

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

FieldSuggestion は、開発者が高度にカスタマイズ可能で、シンプルかつ制御可能な自動補完フィールドを作成できるFlutterパッケージです。リアルタイムの提案付き入力フィールドを構築するための明確なAPIを提供し、テキストおよびカスタムウィジェットレンダリングをサポートしています。このパッケージはAndroid、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームで動作し、インテリジェントな入力処理を必要とするクロスプラットフォームアプリケーションに最適です。提案の表示制御、フィルターロジック、スタイル設定を内蔵しており、複雑さなく柔軟性を提供します。

用途

  • 動的な提案を備えたフォーム入力
  • 予測テキスト付きの検索バー
  • フォーム内のカスタムドロップダウン
  • ユーザーに優しいデータ入力インターフェース
  • 大規模データセットのリアルタイムフィルタリング

主な機能

  • 高度にカスタマイズ可能な提案UI
  • クロスプラットフォーム互換性
  • シンプルで直感的な API
  • 推奨事項でのカスタムウィジェットのサポート
  • 組み込みのフィルタリングおよび制御ロジック
  • 軽量でパフォーマンスに優れる

適している対象

  • フォーム中心のアプリを開発する開発者
  • 一貫したオートコンプリート動作を必要とするチーム
  • プラットフォームに依存しない入力コンポーネントを必要とするアプリ
  • 複雑なユーザー入力が必要なプロジェクト

注意事項

  • データソースロジックの手動実装が必要
  • 限定された組み込みテーマやスタイルプリセット
  • 静的または予測可能な提案ソースに最適

元の README

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


Field Suggesion's Logo

Field Suggesion's Title Logo


Installing

Usage

In this example, we're using the FieldSuggestion.network widget to display suggestions for a username input field. We've provided an inputDecoration with a hint text, a future function that fetches the suggestions based on the user input, a textController that controls the text in the input field, a boxController that controls the visibility of the suggestion box, and a builder function that defines how the suggestions are displayed in the suggestion box.

Note that FieldSuggestion uses generics to allow for suggestions of different types. In the example above, we're using String as the type parameter for FieldSuggestion.network However, any other type can be used, depending on the type of suggestions being displayed.

FieldSuggestion<String>.network(
  inputDecoration: InputDecoration(
    hintText: 'Username', // optional
  ),
  future: (input) => future.call(input),
  textController: controller,
  boxController: boxController, // optional
  builder: (context, snapshot) {
    if (snapshot.connectionState != ConnectionState.done) {
      return Center(child: CircularProgressIndicator());
    }

    final result = snapshot.data ?? [];
    return ListView.builder(
      itemCount: result.length,
      itemBuilder: (context, index) {
        return GestureDetector(
          onTap: () {
            setState(() => controller.text = result[index]);
            boxControllerNetwork.close?.call();
          },
          child: Card(child: ListTile(title: Text(result[index]))),
        );
      },
    );
  },
)

Contributing

  • For information regarding contributions, please refer to CONTRIBUTING.md file.

カテゴリー

依存関係

依存関係一覧 1 件

  • highlightable^1.0.5

ソースリポジトリ

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

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