diff --git a/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart b/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart index 7e60aa5139..b3c0099b71 100644 --- a/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart +++ b/mobile/lib/presentation/widgets/asset_viewer/asset_viewer.page.dart @@ -619,7 +619,7 @@ class _AssetViewerState extends ConsumerState { } void _onPop(bool didPop, T? result) { - ref.read(currentAssetNotifier.notifier).clearAsset(); // clear current asset + ref.read(currentAssetNotifier.notifier).clearAsset(); ref.read(currentAssetNotifier.notifier).dispose(); } diff --git a/mobile/lib/presentation/widgets/images/thumbnail_tile.widget.dart b/mobile/lib/presentation/widgets/images/thumbnail_tile.widget.dart index 4eba195f35..6fe13b5333 100644 --- a/mobile/lib/presentation/widgets/images/thumbnail_tile.widget.dart +++ b/mobile/lib/presentation/widgets/images/thumbnail_tile.widget.dart @@ -58,7 +58,7 @@ class _DelayedAnimationState extends State<_DelayedAnimation> { _delayTimer?.cancel(); if (widget.show && !oldWidget.show) { - // Showing: set duration, then delay, then show + // Showing _currentDuration = widget.showDuration; if (widget.showDelay == Duration.zero) { setState(() => _show = true); @@ -70,7 +70,7 @@ class _DelayedAnimationState extends State<_DelayedAnimation> { }); } } else if (!widget.show && oldWidget.show) { - // Hiding: delay, then set duration and hide + // Hiding if (widget.hideDelay == Duration.zero) { setState(() { _currentDuration = widget.hideDuration;