Skip to content
pubscout

flutter_tree

2.0.3, released 5 years ago by coldstone.fun

A Flutter tree widget plugin to show tree layouts like department structures.

WASM-ready
$ flutter pub add flutter_tree
Source repository

What it does

Provides a TreeView widget for displaying hierarchical tree node data with options for filtering, checkboxes, actions, and lazy loading.

AI-written summary of version 2.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display hierarchical data in a tree-like structure.
  • You require built-in features such as tree filtering, checkboxes, node expansion/collapse callbacks, and lazy loading.

Skip it when

  • You need a draggable tree interface (noted as an unfinished TODO item).
  • You require complex custom filtering functions out of the box.

Strengths

  • Supports lazy loading of child nodes.
  • Built-in support for filtering, checkboxes, and node actions.
  • Straightforward API using `TreeNodeData` and `TreeView`.

Weaknesses

  • Draggable tree functionality is currently not implemented.
  • Custom filter function is pending implementation.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TreeView(
  data: treeData,
  showFilter: true,
  showCheckBox: true,
)

Alternatives

Packages that do the same job and could replace flutter_tree.

  • info_popup

    A customizable tooltip and popup overlay widget with optional target highlighting.

  • gooey

    A layout-agnostic gooey and metaball effect widget for Flutter using fragment shaders.

  • prompt_dialog

    A JavaScript-like prompt dialog widget for Flutter applications.

  • comment_tree

    Render a threaded comment tree with customizable avatars and content.