FLUTTER ECOSYSTEM

Tahaan/expandable_tree_menu

Flutter Widget allowing you to easily create a tree-structure "menu" from a recursive list of data nodes

expandable_tree_menu project cover
Stars
1
Forks
2
Last push (UTC)
Apr 23, 2021
Project status
Active
Johan Hartzenberg GitHub avatar
GITHUB User

Johan Hartzenberg ↗

LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 3 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • pedanticDevelopment^1.11.0

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

expandable_tree_menu

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.

Getting Started

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), ),