Flutter 之 ExpansionTiles 控件
2019-09-25 本文已影响0人
Goach
ExpansionTile(
//左边布局
leading: Icon(Icons.android),
title: Text("标题"),
backgroundColor: Colors.grey,
onExpansionChanged:(isExpand){
print('isExpand====$isExpand');
},
children: <Widget>[
ListTile(
title: Text("展开的标题"),
leading: Icon(Icons.android,color: Colors.white),
),
],
//右边显示的Widget,而不是旋转的箭头
//trailing:Text('trailing'),
initiallyExpanded: false,//默认是否展开
)