Commit 119758b8 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Make the suspended gallery task bar gray (#5651)

parent c76decb8
......@@ -75,6 +75,7 @@ class GalleryAppState extends State<GalleryApp> {
return new MaterialApp(
title: 'Flutter Gallery',
color: Colors.grey[500],
theme: _useLightTheme ? _kGalleryLightTheme : _kGalleryDarkTheme,
showPerformanceOverlay: _showPerformanceOverlay,
routes: _kRoutes,
......
......@@ -48,6 +48,7 @@ class MaterialApp extends StatefulWidget {
MaterialApp({
Key key,
this.title,
this.color,
this.theme,
this.home,
this.routes: const <String, WidgetBuilder>{},
......@@ -85,6 +86,13 @@ class MaterialApp extends StatefulWidget {
/// must be able to build a widget for that route.
final Widget home;
/// The primary color to use for the application in the operating system
/// interface.
///
/// For example, on Android this is the color used for the application in the
/// application switcher.
final Color color;
/// The application's top-level routing table.
///
/// When a named route is pushed with [Navigator.pushNamed], the route name is
......@@ -221,7 +229,8 @@ class _MaterialAppState extends State<MaterialApp> {
key: new GlobalObjectKey(this),
title: config.title,
textStyle: _errorTextStyle,
color: theme?.primaryColor ?? Colors.blue[500], // blue[500] is the primary color of the default theme
// blue[500] is the primary color of the default theme
color: config.color ?? theme?.primaryColor ?? Colors.blue[500],
navigatorObserver: _heroController,
onGenerateRoute: _onGenerateRoute,
onLocaleChanged: config.onLocaleChanged,
......
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