Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
119758b8
Commit
119758b8
authored
Aug 29, 2016
by
Hans Muller
Committed by
GitHub
Aug 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the suspended gallery task bar gray (#5651)
parent
c76decb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
app.dart
examples/flutter_gallery/lib/gallery/app.dart
+1
-0
app.dart
packages/flutter/lib/src/material/app.dart
+10
-1
No files found.
examples/flutter_gallery/lib/gallery/app.dart
View file @
119758b8
...
...
@@ -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
,
...
...
packages/flutter/lib/src/material/app.dart
View file @
119758b8
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment