FLUTTER ECOSYSTEM

Tahaan/expandable_tree_menu

Flutter-Widget, mit dem Sie einfach ein Baumstruktur-Menü aus einer rekursiven Liste von Datenknoten erstellen können

Projektcover von erweiterbares Baummenü
Stars
1
Forks
2
Letzter Push (UTC)
23.04.2021
Projektstatus
Aktiv
Johan Hartzenberg GitHub avatar
GITHUB User

Johan Hartzenberg ↗

SprachenDart

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge
  • flutter{"sdk":"flutter"}
  • flutter_testEntwicklung{"sdk":"flutter"}
  • pedanticEntwicklung^1.11.0

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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