我正在尝试使用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),
),
)
],
),
),