buildList method
构建菜单列表
Implementation
@override
List<Widget> buildList(BuildContext context) {
List<Widget> children = [];
for (int i = 0; i < childCount; i++) {
children.add(builder(context, i));
}
return children;
}
构建菜单列表
@override
List<Widget> buildList(BuildContext context) {
List<Widget> children = [];
for (int i = 0; i < childCount; i++) {
children.add(builder(context, i));
}
return children;
}