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

appflowy_board のカバー
パッケージ詳細v0.1.2

appflowy_board

AppFlowyBoard は、複数のグループから構成されるボードスタイルのウィジェットです。異なるグループ間でのドラッグアンドドロップをサポートしています。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
3040
いいね数
225
Pub ポイント
130

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

flutter pub add appflowy_board

パッケージ概要

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

AppFlowyBoard は、複数のグループを備えたボード型インターフェースを作成するための Flutter ウィジェットで、グループ間での直感的なドラッグアンドドロップ操作を可能にします。タスク、プロジェクト、コンテンツを視覚的かつ柔軟なレイアウトで整理するのに最適です。クロスプラットフォーム対応で、Android、iOS、macOS、Windows、Linux をサポートしています。AppFlowyエコシステムの一部として、生産性とユーザーに優しいデータ管理を重視しています。モジュール構造により、開発者はグループの挙動やアイテムのインタラクションを簡単にカスタマイズできます。

用途

  • タスク管理
  • プロジェクト計画
  • コンテンツの組織化
  • ビジュアルワークフロー設計
  • 共同編集

主な機能

  • マルチグループボードレイアウト
  • グループ間のドラッグアンドドロップ
  • クロスプラットフォーム対応
  • カスタマイズ可能なグループ項目
  • 拡張可能な UI コンポーネント

適している対象

  • 生産性アプリ
  • カンバンスタイルのツール
  • ダッシュボードビルダー
  • 開発者ツール
  • インタラクティブなデータ表示

注意事項

  • Flutter ゲスチャーの理解が必要です
  • 追加の状態管理が必要になる場合があります
  • GitHub以外のドキュメントは限られている
  • 中〜大規模なボードに最適
  • 完全な機能を実現するにはAppFlowyエコシステムに依存します

元の README

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

appflowy_board

AppFlowy Board

A customizable and draggable Kanban Board widget for Flutter

Discord • Twitter

AppFlowyBoard

Intro

appflowy_board is a customizable and draggable Kanban Board widget for Flutter. You can use it to create a Kanban Board tool like those in Trello.

Check out appflowy_board to see to build a BoardView database.

AppFlowyBoard

Getting Started

Add the AppFlowy Board Flutter package to your environment.

With Flutter:

flutter pub add appflowy_board
flutter pub get

This will add a line like this to your package's pubspec.yaml:

dependencies:
  appflowy_board: ^0.1.0

Create your first board

Initialize an AppFlowyBoardController for the board. It contains the data used by the board. You can register callbacks to receive the changes of the board.


final AppFlowyBoardController controller = AppFlowyBoardController(
  onMoveGroup: (fromGroupId, fromIndex, toGroupId, toIndex) {
    debugPrint('Move item from $fromIndex to $toIndex');
  },
  onMoveGroupItem: (groupId, fromIndex, toIndex) {
    debugPrint('Move $groupId:$fromIndex to $groupId:$toIndex');
  },
  onMoveGroupItemToGroup: (fromGroupId, fromIndex, toGroupId, toIndex) {
    debugPrint('Move $fromGroupId:$fromIndex to $toGroupId:$toIndex');
  },
);

Provide an initial value of the board by initializing the AppFlowyGroupData. It represents a group data and contains list of items. Each item displayed in the group requires to implement the AppFlowyGroupItem class.


void initState() {
  final group1 = AppFlowyGroupData(id: "To Do", items: [
    TextItem("Card 1"),
    TextItem("Card 2"),
  ]);
  final group2 = AppFlowyGroupData(id: "In Progress", items: [
    TextItem("Card 3"),
    TextItem("Card 4"),
  ]);

  final group3 = AppFlowyGroupData(id: "Done", items: []);

  controller.addGroup(group1);
  controller.addGroup(group2);
  controller.addGroup(group3);
  super.initState();
}

class TextItem extends AppFlowyGroupItem {
  final String s;
  TextItem(this.s);

  @override
  String get id => s;
}

Finally, return a AppFlowyBoard widget in the build method.


@override
Widget build(BuildContext context) {
  return AppFlowyBoard(
    controller: controller,
    cardBuilder: (context, group, groupItem) {
      final textItem = groupItem as TextItem;
      return AppFlowyGroupCard(
        key: ObjectKey(textItem),
        child: Text(textItem.s),
      );
    },
    groupConstraints: const BoxConstraints.tightFor(width: 240),
  );
}

Usage Example

To quickly grasp how it can be used, look at the /example/lib folder. First, run main.dart to play with the demo.

Second, let's delve into multi_board_list_example.dart to understand a few key components:

  • A Board widget is created via instantiating an AppFlowyBoard object.
  • In the AppFlowyBoard object, you can find the AppFlowyBoardController, which is defined in board_data.dart, is fed with pre-populated mock data. It also contains callback functions to materialize future user data.
  • Three builders: AppFlowyBoardHeaderBuilder, AppFlowyBoardFooterBuilder, AppFlowyBoardCardBuilder. See below image for what they are used for.

AppFlowyBoard

Glossary

Please refer to the API documentation.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Please look at CONTRIBUTING.md for details.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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