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

flutter_reorderable_list のカバー
パッケージ詳細v1.3.1

flutter_reorderable_list

Flutter用の再配置可能なリスト。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1.7万
いいね数
169
Pub ポイント
130

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

flutter pub add flutter_reorderable_list

パッケージ概要

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

Flutterパッケージで、リスト内のアイテムをドラッグアンドドロップして順序を変更できる再配置可能なリストウィジェットを提供します。Android、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしています。Flutterの既存のリストウィジェットとシームレスに統合され、再配置時にスムーズなアニメーションを提供します。タスクマネージャーやToDoリスト、ソート可能なコンテンツなど、アイテムの順序をカスタマイズする必要があるアプリケーションに最適です。

用途

  • タスクの優先順位付け
  • 並べ替え可能なタスクリスト
  • カスタマイズ可能なダッシュボードレイアウト
  • 画像ギャラリーの並べ替え
  • ユーザー定義のコンテンツシーケンス

主な機能

  • ドラッグアンドドロップによる再順序付け
  • スムーズなアニメーション
  • クロスプラットフォーム互換性
  • ListView との簡単な統合
  • カスタムドラッグハンドルをサポート
  • 並べ替え中にアイテムの状態を保持する

適している対象

  • インタラクティブなリストを構築する開発者
  • ユーザー主導のアイテム並べ替えを必要とするアプリ
  • 動的なコンテンツ順序を持つプロジェクト
  • 直感的なデータ操作を必要とするUI
  • 複数のプラットフォームでFlutterを使用するチーム

注意事項

  • 状態管理の適切な取り扱いが必要です
  • 大規模なデータセットではパフォーマンスに影響する可能性があります
  • 複雑なレイアウトには適切なジェスチャー処理が必要です
  • 静的または読み取り専用のリストには適していません
  • 基本的なドラッグ動作以外のカスタマイズが限られている

元の README

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

Reorderable List in Flutter

iOS-like proof of concept reorderable list with animations

Preview

Getting Started

See example/lib/main.dart for example usage

Highlights

Unlike flutter's ReorderableListView this one

  • Works with slivers so it can be placed in CustomScrollView and used with SliverAppBar
  • Supports large lists (thousands of items) without any issues

Other features

  • Smooth reordering animations
  • Supports different item heights
  • iOS like reordering with drag handle
  • Android like (long touch) reordering

Caveats

There are no API stability guarantees.

If you used previous version of reorderable list keep in mind that ReorderableListener now needs to be placed somewhere in ReorderableItem hierarchy in order to detect touch and trigger actual reordering (see the example).

Alternatively, you can wrap entire row in DelayedReorderableListener to get material like long-press reordering behavior.

カテゴリー

ソースリポジトリ

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