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
|
@override
|
||||||
Widget build(BuildContext context) {
|
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(
|
return new AnimatedBuilder(
|
||||||
animation: effectiveAnimation,
|
animation: effectiveAnimation,
|
||||||
builder: (BuildContext context, Widget child) {
|
builder: (BuildContext context, Widget child) {
|
||||||
|
|||||||
Reference in New Issue
Block a user