Disable parallax in gallery home header (#5250)

We don't yet know how to do this without poping during hero animations.
This commit is contained in:
Adam Barth 2016-08-05 09:59:17 -07:00 committed by GitHub
parent 4cc094ac9f
commit d321ce352e

View File

@ -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) {