v0.1.0-dev.5expandable_tree_menu
Tree of menu-nodes that can be expanded/collapsed to review more menu nodes, built from a recursive list of nodes.
Flutter Widget allowing you to easily create a tree-structure "menu" from a recursive list of data nodes
{"sdk":"flutter"}{"sdk":"flutter"}^1.11.0English project snapshot. Visit GitHub for the latest content.
A Tree of Sub-menus that can be expanded/collapsed and each node can recursively contain another tree.
Using the onSelect callback allows the Tree to be used as a menu.
Add the dependency to the pubspec.yaml file
dependencies: ... expandable_tree_menu: ^0.1.0
Import it
import 'package:expandable_tree_menu/expandable_tree_menu.dart';
Instantiate it somewhere
ExpandableTree( nodes: _nodesFromBooks(bookNodes), nodeBuilder: _nodeBuilder, onSelect: (dynamic node) => _nodeSelected(context, node), ),