Search packages, repositories and app categories

GitHub repositoryTahaan/expandable_tree_menu

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

Original README

English project snapshot. Visit GitHub for the latest content.

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

Johan Hartzenberg GitHub avatar
GitHub author

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

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗