tree_view_package library
A powerful tree view package for Flutter with animations, drag-and-drop, and customizable indentation guides.
Classes
- AbstractLinesGuide
- Base class for indent guides that paint lines.
-
AnimatedTreeView<
T extends Object> - A TreeView that animates expansion state changes.
- ConnectingLinesGuide
- Indent guide that draws connecting lines between nodes.
- DefaultIndentGuide
- Provides a default IndentGuide to descendant widgets.
- FolderButton
- An animated button that shows different icons based on folder state.
- IndentGuide
- Configuration for indenting and painting guides for tree nodes.
- ScopingLinesGuide
- Indent guide that draws vertical scoping lines.
-
SliverAnimatedTree<
T extends Object> - A sliver tree with animated expand/collapse transitions.
-
SliverTree<
T extends Object> - A sliver that displays a tree structure.
- TreeCheckboxScope
- An InheritedWidget that provides checkbox builder to descendants.
-
TreeController<
T extends Object> - A controller for managing the state of a tree structure.
-
TreeDragAndDropDetails<
T extends Object> - Details of a drag-and-drop operation.
-
TreeDraggable<
T extends Object> - A widget that makes tree nodes draggable.
-
TreeDragTarget<
T extends Object> - A widget that accepts dragged tree nodes.
-
TreeDropdown<
T extends Object> - A dropdown widget that displays items in a tree structure with connecting lines.
-
TreeDropdownController<
T extends Object> - Controller for managing TreeDropdown state.
-
TreeEntry<
T extends Object> - Stores contextual information about a node in the tree.
- TreeIndentation
- Widget for indenting tree nodes with optional visual guides.
- TreeSearchMatch
- Details of a search match for a single node.
-
TreeSearchResult<
T extends Object> - Result of a tree search operation.
-
TreeView<
T extends Object> - A scrollable widget that displays a tree structure.
-
TreeViewScope<
T extends Object> - An InheritedWidget that provides tree controller access to descendants.
Constants
- largestPositiveInteger → const int
- Maximum positive integer constant.
- treeRootLevel → const int
- The default level used for root nodes when flattening the tree.
Functions
-
defaultFolderButtonTransitionBuilder(
Widget child, Animation< double> animation) → Widget - Default transition builder for FolderButton.
-
defaultTreeTransitionBuilder(
BuildContext context, Widget child, Animation< double> animation) → Widget - Default transition builder using SizeTransition.
Typedefs
- CheckboxBuilder = Widget Function()
- Signature for building checkbox widgets.
-
ChildrenProvider<
T> = Iterable< T> Function(T node) - Signature for a function that returns the children of a node.
-
ParentProvider<
T> = T? Function(T node) - Signature for a function that returns the parent of a node.
- PathModifier = Path Function(Path path)
- Signature for modifying paths before painting.
-
TreeDraggableBuilder<
T extends Object> = Widget Function(BuildContext context, TreeDragAndDropDetails< T> ? details) - Builder for tree draggable widgets.
-
TreeDragTargetNodeAccepted<
T extends Object> = void Function(TreeDragAndDropDetails< T> details) - Callback when a node is accepted by a drag target.
-
TreeNodeBuilder<
T extends Object> = Widget Function(BuildContext context, TreeEntry< T> entry) - Signature for building tree node widgets.
-
TreeTransitionBuilder
= Widget Function(BuildContext context, Widget child, Animation<
double> animation) - Signature for transition builders.
-
ValuePredicate<
T> = bool Function(T value) - Signature for predicate functions.
-
Visitor<
T> = void Function(T node) - Signature for visiting nodes during traversal.