只需将AppBar
中的leading
属性设置为空Container
appBar: new AppBar(
leading: new Container(),
....
并且为了go 除endDrawer
(用于RTL).它放置在action
属性所在的位置,因此也只需添加一个空Container
作为action
属性的单个child
appBar: new AppBar(
actions: <Widget>[
new Container(),
],
.....