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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user