fix(mobile): use actual child size for live photo

This commit is contained in:
LeLunZ
2026-04-19 16:22:42 +02:00
parent 276b42d3ff
commit 48b3b3caba
@@ -319,9 +319,11 @@ class _AssetPageState extends ConsumerState<AssetPage> {
return PhotoView.customChild( return PhotoView.customChild(
key: Key(asset.heroTag), key: Key(asset.heroTag),
childSize: asset.width != null && asset.height != null childSize:
? Size(asset.width!.toDouble(), asset.height!.toDouble()) _viewController?.scaleBoundaries?.childSize ??
: null, (asset.width != null && asset.height != null
? Size(asset.width!.toDouble(), asset.height!.toDouble())
: null),
onDragStart: _onDragStart, onDragStart: _onDragStart,
onDragUpdate: _onDragUpdate, onDragUpdate: _onDragUpdate,
onDragEnd: _onDragEnd, onDragEnd: _onDragEnd,