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(
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user