mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(mobile): use actual child size for live photo
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user