Commit d321ce35 authored by Adam Barth's avatar Adam Barth Committed by GitHub

Disable parallax in gallery home header (#5250)

We don't yet know how to do this without poping during hero animations.
parent 4cc094ac
......@@ -42,7 +42,9 @@ class _AppBarBackground extends StatelessWidget {
@override
Widget build(BuildContext context) {
Animation<double> effectiveAnimation = animation ?? kAlwaysCompleteAnimation;
// TODO(abarth): Wire up to the parallax of the FlexibleSpaceBar in a way
// that doesn't pop during hero transition.
Animation<double> effectiveAnimation = kAlwaysDismissedAnimation;
return new AnimatedBuilder(
animation: effectiveAnimation,
builder: (BuildContext context, Widget child) {
......
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