Commit 187ff002 authored by Hans Muller's avatar Hans Muller Committed by GitHub

New gallery app bar background (#4539)

parent 2099d378
......@@ -11,7 +11,7 @@ dependencies:
flutter_gallery_assets:
git:
url: https://flutter.googlesource.com/gallery-assets
ref: 5c9118f9e6005c9fef6f1a340e5c475494c2ba80
ref: ea2c9c344c8b6b318341590e2af0707f8a6649f1
dev_dependencies:
flutter_test:
......
......@@ -9,7 +9,7 @@ dependencies:
flutter_gallery_assets:
git:
url: https://flutter.googlesource.com/gallery-assets
ref: 5c9118f9e6005c9fef6f1a340e5c475494c2ba80
ref: ea2c9c344c8b6b318341590e2af0707f8a6649f1
dev_dependencies:
test: any # flutter_test provides the version constraints
......
......@@ -8,6 +8,7 @@ assets:
- assets/section_components.png
- assets/section_patterns.png
- assets/section_usability.png
- packages/flutter_gallery_assets/appbar_background.jpg
- packages/flutter_gallery_assets/pesto/avatar.jpg
- packages/flutter_gallery_assets/pesto/image10.jpg
- packages/flutter_gallery_assets/pesto/image11.jpg
......
......@@ -34,7 +34,7 @@ class IconsDemoState extends State<IconsDemo> {
Colors.blueGrey
];
int iconColorIndex = 2;
int iconColorIndex = 9; // green
double iconOpacity = 1.0;
Color get iconColor => iconColorSwatches[iconColorIndex][400];
......
......@@ -46,12 +46,12 @@ final Map<String, WidgetBuilder> kRoutes = <String, WidgetBuilder>{
final ThemeData _kGalleryLightTheme = new ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.purple
primarySwatch: Colors.green
);
final ThemeData _kGalleryDarkTheme = new ThemeData(
brightness: Brightness.dark,
primarySwatch: Colors.purple
primarySwatch: Colors.green
);
class GalleryApp extends StatefulWidget {
......
......@@ -59,6 +59,11 @@ class GalleryHomeState extends State<GalleryHome> {
appBar: new AppBar(
expandedHeight: _kFlexibleSpaceMaxHeight,
flexibleSpace: new FlexibleSpaceBar(
background: new AssetImage(
name: 'packages/flutter_gallery_assets/appbar_background.jpg',
fit: ImageFit.cover,
height: _kFlexibleSpaceMaxHeight
),
title: new Text('Flutter gallery')
)
),
......
......@@ -13,7 +13,7 @@ dependencies:
flutter_gallery_assets:
git:
url: https://flutter.googlesource.com/gallery-assets
ref: 5c9118f9e6005c9fef6f1a340e5c475494c2ba80
ref: ea2c9c344c8b6b318341590e2af0707f8a6649f1
dev_dependencies:
test: any # flutter_test provides the version constraints
......
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