答案 0 :(得分:4)
您必须将抽屉子属性传递给ListView,然后在该ListView中使用ExpansionTile。看起来像这样:
Drawer(
child: ListView(
children: <Widget>[
ExpansionTile(
title: Text("Expansion Title"),
children: <Widget>[Text("children 1"), Text("children 2")],
)
],
),
);