【发布时间】:2018-06-22 15:44:00
【问题描述】:
我正在尝试使用CupertinoSliverNavigationBar,实际上它很棒,但由于某种原因我不能将尾随放在导航栏的末尾。我抬头一看(我猜,我)发现里面有Padding
这是我的代码
new CupertinoPageScaffold(
child: new CustomScrollView(
slivers: <Widget>[
new CupertinoSliverNavigationBar(
largeTitle: new Text('Tasks'),
trailing: new CupertinoButton(
child: new Icon(AdditionalCupertinoIcons.compose, size: 32.0),
onPressed: () {
showDialog(
context: context,
builder: (BuildContext context) {
return new CupertinoAlertDialog();
});
},
padding: EdgeInsets.all(0.0),
),
)
],
),
),
【问题讨论】: