Fix preview not going away after quitting slideshow

This commit is contained in:
Ming Ming 2024-09-04 00:16:55 +08:00
parent 588f58d063
commit 9bc4e7c97d

View file

@ -201,7 +201,8 @@ class _RemoteImageViewerState extends State<RemoteImageViewer> {
}
void _animationListener(AnimationStatus status) {
if (status == AnimationStatus.completed) {
if (status == AnimationStatus.completed ||
status == AnimationStatus.dismissed) {
_isHeroDone = true;
if (mounted) {
setState(() {});