diff --git a/examples/flutter_gallery/lib/demo/pesto_demo.dart b/examples/flutter_gallery/lib/demo/pesto_demo.dart index 1f48d83a22..65532cfa4c 100644 --- a/examples/flutter_gallery/lib/demo/pesto_demo.dart +++ b/examples/flutter_gallery/lib/demo/pesto_demo.dart @@ -51,7 +51,7 @@ class PestoDemo extends StatefulWidget { } class _PestoDemoState extends State { - final GlobalKey _scaffoldKey = new GlobalKey(); + static final GlobalKey _scaffoldKey = new GlobalKey(); final TextStyle favoritesMessageStyle = _textStyle(16.0); final TextStyle userStyle = _textStyle(12.0, FontWeight.bold); final TextStyle emailStyle = _textStyle(12.0).copyWith(color: Colors.black54); @@ -77,7 +77,7 @@ class _PestoDemoState extends State { Widget _buildAppBar(BuildContext context) { final double statusBarHeight = MediaQuery.of(context).padding.top; return new AppBar( - expandedHeight: 128.0, + expandedHeight: _kAppBarHeight, actions: [ new IconButton( icon: Icons.search,