v0.1.0-dev.5expandable_tree_menu
由递归节点列表构建的菜单节点树,可展开/折叠以查看更多菜单节点。
Flutter 小部件,可让您轻松从递归数据节点列表创建树形结构的“菜单”
以下为英文项目原文快照,最新内容请访问 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), ),
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^1.11.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗