Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): fill video placeholder to prevent flicker on open (#31621)

Luis Nachtigall5c8037301cf1
diff --git a/mobile/lib/presentation/widgets/asset_viewer/video_viewer.widget.dart b/mobile/lib/presentation/widgets/asset_viewer/video_viewer.widget.dart
index 903f53c153..72a2ea2315 100644
--- a/mobile/lib/presentation/widgets/asset_viewer/video_viewer.widget.dart
+++ b/mobile/lib/presentation/widgets/asset_viewer/video_viewer.widget.dart
@@ -317,7 +317,7 @@ class _NativeVideoViewerState extends ConsumerState<NativeVideoViewer> with Widg
return IgnorePointer(
child: Stack(
children: [
- if (!_isVideoReady || widget.asset.isMotionPhoto || isCasting) Center(child: widget.image),
+ if (!_isVideoReady || widget.asset.isMotionPhoto || isCasting) Positioned.fill(child: widget.image),
if (!isCasting) ...[
Visibility.maintain(
visible: _isVideoReady,