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

boardview のカバー
パッケージ詳細v1.0.0

boardview

これは、ドラッグ可能な BoardView(カンバンとも呼ばれる)を作成できるカスタムFlutterウィジェットです。ドラッグアンドドロップで並べ替えが可能です。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
3140
いいね数
146
Pub ポイント
140

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

flutter pub add boardview

パッケージ概要

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

BoardView は、ドラッグ可能なカンバンスタイルのボードを作成するために設計されたカスタマイズ可能な Flutter ウィジェットです。直感的なドラッグアンドドロップ操作により、ユーザーはカラムやカードを簡単に再配置でき、タスク管理やワークフローの可視化に最適です。パフォーマンスと柔軟性を重視して構築されており、Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしています。このウィジェットは非常に拡張可能で、既存の Flutter アプリケーションにスムーズに統合できます。

用途

  • タスク管理アプリケーション
  • プロジェクト計画ツール
  • ワークフローの可視化
  • カスタムカンバンボード
  • ドラッグアンドドロップインターフェース

主な機能

  • ドラッグアンドドロップによる再順序付け
  • カスタマイズ可能なカラムとカードレイアウト
  • クロスプラットフォーム互換性
  • 拡張可能な設計
  • スムーズなアニメーション

適している対象

  • Kanban インターフェースを構築する開発者
  • ワークフローを管理するチーム
  • 視覚的なタスクの整理を必要とするアプリ
  • インタラクティブコンポーネントを探しているUIデザイナー
  • 複数のプラットフォームでのFlutterプロジェクト

注意事項

  • Flutter ジェスチャー処理の理解が必要です
  • 複雑なデザインには追加のスタイルが必要になる場合があります
  • パフォーマンスはアイテム数に依存します
  • データ整合性のための制限された組み込み検証
  • 永続化にカスタムロジックが必要です

元の README

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

pub package

Flutter BoardView

This is a custom widget that can create a draggable BoardView or also known as a kanban. The view can be reordered with drag and drop.

Installation

Just add boardview to the pubspec.yaml file.

Usage Example

To get started you can look inside the /example folder. This package is broken into 3 core parts

Example

BoardView

The BoardView class takes in a List of BoardLists. It can also take in a BoardViewController which is can be used to animate to positions in the BoardView


BoardViewController boardViewController = new BoardViewController();

List<BoardList> _lists = List<BoardList>();

BoardView(
  lists: _lists,
  boardViewController: boardViewController,
);

BoardList

The BoardList has several callback methods for when it is being dragged. The header item is a Row and expects a List as its object. The header item on long press will begin the drag process for the BoardList.


    BoardList(
      onStartDragList: (int listIndex) {
    
      },
      onTapList: (int listIndex) async {
    
      },
      onDropList: (int listIndex, int oldListIndex) {       
       
      },
      headerBackgroundColor: Color.fromARGB(255, 235, 236, 240),
      backgroundColor: Color.fromARGB(255, 235, 236, 240),
      header: [
        Expanded(
            child: Padding(
                padding: EdgeInsets.all(5),
                child: Text(
                  "List Item",
                  style: TextStyle(fontSize: 20),
                ))),
      ],
      items: items,
    );

BoardItem

The BoardItem view has several callback methods that get called when dragging. A long press on the item field widget will begin the drag process.


    BoardItem(
        onStartDragItem: (int listIndex, int itemIndex, BoardItemState state) {
        
        },
        onDropItem: (int listIndex, int itemIndex, int oldListIndex,
            int oldItemIndex, BoardItemState state) {
                      
        },
        onTapItem: (int listIndex, int itemIndex, BoardItemState state) async {
        
        },
        item: Card(
          child: Padding(
            padding: const EdgeInsets.all(8.0),
            child: Text("Board Item"),
          ),
        )
    );

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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