v0.1.0-dev.5expandable_tree_menu
재귀적 노드 목록에서 만들어진 전개/접기 가능한 메뉴 노드 트리입니다.
49좋아요 10030일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
재귀적인 데이터 노드 목록에서 쉽게 트리 구조의 "메뉴"를 생성할 수 있는 Flutter 위젯
{"sdk":"flutter"}{"sdk":"flutter"}^1.11.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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), ),