mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Add an appbar shadow to Pesto's recipe page. (#5954)
Fixes https://github.com/flutter/flutter/issues/5711
This commit is contained in:
parent
51960b4482
commit
278711d5b1
|
@ -326,6 +326,17 @@ class _RecipePageState extends State<RecipePage> {
|
|||
]
|
||||
)
|
||||
],
|
||||
flexibleSpace: new FlexibleSpaceBar(
|
||||
background: new DecoratedBox(
|
||||
decoration: new BoxDecoration(
|
||||
gradient: new LinearGradient(
|
||||
begin: const FractionalOffset(0.5, 0.0),
|
||||
end: const FractionalOffset(0.5, 0.40),
|
||||
colors: <Color>[const Color(0x60000000), const Color(0x00000000)]
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
),
|
||||
body: _buildContainer(context)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue