【发布时间】:2019-05-23 01:18:08
【问题描述】:
我想在AppBar 的标题下方有一个IconButton。我尝试了Column,但我遇到了将所有项目居中以及底部溢出的问题。
我的代码:
appBar: new AppBar(
title: Column(
children: <Widget>[
new Text('App Title'),
IconButton(
icon: new Icon(new IconData(0xe902, fontFamily: 'Ionicons')),
onPressed: () {},
)
],
),
centerTitle: true,
actions: <Widget>[
IconButton(
icon: new Icon(new IconData(0xe906, fontFamily: 'Ionicons')),
onPressed: () {},
)
],
),
【问题讨论】:
标签: flutter