From d321ce352e86c00ecf7ec97e1fb8901b511dd88d Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 5 Aug 2016 09:59:17 -0700 Subject: [PATCH] Disable parallax in gallery home header (#5250) We don't yet know how to do this without poping during hero animations. --- examples/flutter_gallery/lib/gallery/home.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/flutter_gallery/lib/gallery/home.dart b/examples/flutter_gallery/lib/gallery/home.dart index 54b538f85bb..da1071af14a 100644 --- a/examples/flutter_gallery/lib/gallery/home.dart +++ b/examples/flutter_gallery/lib/gallery/home.dart @@ -42,7 +42,9 @@ class _AppBarBackground extends StatelessWidget { @override Widget build(BuildContext context) { - Animation effectiveAnimation = animation ?? kAlwaysCompleteAnimation; + // TODO(abarth): Wire up to the parallax of the FlexibleSpaceBar in a way + // that doesn't pop during hero transition. + Animation effectiveAnimation = kAlwaysDismissedAnimation; return new AnimatedBuilder( animation: effectiveAnimation, builder: (BuildContext context, Widget child) {