mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
4cc094ac9f
commit
d321ce352e
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user