From c1beb15f85a878cc9e4cbc88a1ba1a9a4eed385a Mon Sep 17 00:00:00 2001 From: liyuqian Date: Fri, 31 Aug 2018 14:46:19 -0700 Subject: [PATCH] Use Visibility to hide gallery menu (#19121) --- examples/flutter_gallery/lib/gallery/backdrop.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/flutter_gallery/lib/gallery/backdrop.dart b/examples/flutter_gallery/lib/gallery/backdrop.dart index 6773820bb2..cea460bd53 100644 --- a/examples/flutter_gallery/lib/gallery/backdrop.dart +++ b/examples/flutter_gallery/lib/gallery/backdrop.dart @@ -282,11 +282,11 @@ class _BackdropState extends State with SingleTickerProviderStateMixin ), ), new Expanded( - child: new _TappableWhileStatusIs( - AnimationStatus.dismissed, - controller: _controller, + child: new Visibility( child: widget.backLayer, - ), + visible: _controller.status != AnimationStatus.completed, + maintainState: true, + ) ), ], ),