Reputation: 13131
For faster navigation to root pages in deep navigation, both Back and Drawer icon buttons need to be shown in AppBar.
How to do that in a Flutter app?
Upvotes: 10
Views: 6575
Reputation: 5863
Wrap your toolbar widget with Row
....
Row toolbar = new Row(
children: <Widget>[
new Icon(Icons.arrow_back),
new Icon(Icons.menu),
new Expanded(child: new Text(widget.title)),
new Icon(Icons.arrow_forward)
]
);
return new Scaffold(
appBar: new AppBar(
title: toolbar,
),
....
Upvotes: 3