Unverified Commit 8a77036b authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Center Shrine demo title with centerTitle (#13586)

Rather than use a Center widget, center the title using AppBar's
centerTitle property. This ensures the title is horizontally centred
with respect to the screen rather than centred in the space between the
leading and trailing app bar widgets, which are asymmetrical in Shrine.
parent 5bbcf6d4
......@@ -101,9 +101,8 @@ class ShrinePageState extends State<ShrinePage> {
)
)
),
title: new Center(
child: new Text('SHRINE', style: ShrineTheme.of(context).appBarTitleStyle)
),
title: new Text('SHRINE', style: ShrineTheme.of(context).appBarTitleStyle),
centerTitle: true,
actions: <Widget>[
new IconButton(
icon: const Icon(Icons.shopping_cart),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment