ToolBar with a TabBar shouldn't have a shadow

This patch makes the level of the ToolBar configurable. I've also cleaned up
the Tab code slightly.

For some reason, there's still a hairline between the ToolBar and the TabBar.
We might need to rethink how we draw the background a bit here.

Fixes #1454
This commit is contained in:
Adam Barth
2015-10-05 23:35:06 -07:00
parent 922aece1d5
commit 6cf105fe3e
5 changed files with 53 additions and 69 deletions

View File

@@ -126,22 +126,23 @@ class StockHomeState extends State<StockHome> {
Widget buildToolBar() {
return new ToolBar(
left: new IconButton(
icon: "navigation/menu",
onPressed: _showDrawer
level: 0,
left: new IconButton(
icon: "navigation/menu",
onPressed: _showDrawer
),
center: new Text('Stocks'),
right: [
new IconButton(
icon: "action/search",
onPressed: _handleSearchBegin
),
center: new Text('Stocks'),
right: [
new IconButton(
icon: "action/search",
onPressed: _handleSearchBegin
),
new IconButton(
icon: "navigation/more_vert",
onPressed: _handleMenuShow
)
]
);
new IconButton(
icon: "navigation/more_vert",
onPressed: _handleMenuShow
)
]
);
}
int selectedTabIndex = 0;