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

View File

@ -319,9 +319,11 @@ class _AssetPageState extends ConsumerState<AssetPage> {
return PhotoView.customChild(
key: Key(asset.heroTag),
childSize: asset.width != null && asset.height != null
? Size(asset.width!.toDouble(), asset.height!.toDouble())
: null,
childSize:
_viewController?.scaleBoundaries?.childSize ??
(asset.width != null && asset.height != null
? Size(asset.width!.toDouble(), asset.height!.toDouble())
: null),
onDragStart: _onDragStart,
onDragUpdate: _onDragUpdate,
onDragEnd: _onDragEnd,