mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
revert fixes
This commit is contained in:
@@ -319,11 +319,9 @@ class _AssetPageState extends ConsumerState<AssetPage> {
|
|||||||
|
|
||||||
return PhotoView.customChild(
|
return PhotoView.customChild(
|
||||||
key: Key(asset.heroTag),
|
key: Key(asset.heroTag),
|
||||||
childSize:
|
childSize: asset.width != null && asset.height != null
|
||||||
_viewController?.scaleBoundaries?.childSize ??
|
? Size(asset.width!.toDouble(), asset.height!.toDouble())
|
||||||
(asset.width != null && asset.height != null
|
: null,
|
||||||
? Size(asset.width!.toDouble(), asset.height!.toDouble())
|
|
||||||
: null),
|
|
||||||
onDragStart: _onDragStart,
|
onDragStart: _onDragStart,
|
||||||
onDragUpdate: _onDragUpdate,
|
onDragUpdate: _onDragUpdate,
|
||||||
onDragEnd: _onDragEnd,
|
onDragEnd: _onDragEnd,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
import 'package:immich_mobile/utils/debug_print.dart';
|
||||||
import 'package:immich_mobile/widgets/photo_view/photo_view.dart';
|
import 'package:immich_mobile/widgets/photo_view/photo_view.dart';
|
||||||
import 'package:immich_mobile/widgets/photo_view/src/core/photo_view_core.dart';
|
import 'package:immich_mobile/widgets/photo_view/src/core/photo_view_core.dart';
|
||||||
import 'package:immich_mobile/widgets/photo_view/src/photo_view_default_widgets.dart';
|
import 'package:immich_mobile/widgets/photo_view/src/photo_view_default_widgets.dart';
|
||||||
@@ -145,15 +146,6 @@ class _ImageWrapperState extends State<ImageWrapper> {
|
|||||||
_lastStack = null;
|
_lastStack = null;
|
||||||
|
|
||||||
_didLoadSynchronously = synchronousCall;
|
_didLoadSynchronously = synchronousCall;
|
||||||
final oldBoundaries = widget.controller.scaleBoundaries;
|
|
||||||
widget.controller.scaleBoundaries = scaleBoundaries;
|
|
||||||
if (oldBoundaries != null) {
|
|
||||||
final ratio = scaleBoundaries.initialScale / oldBoundaries.initialScale;
|
|
||||||
final currentScale = widget.controller.scale;
|
|
||||||
if (currentScale != null) {
|
|
||||||
widget.controller.setScaleInvisibly(currentScale * ratio);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronousCall && !_didLoadSynchronously ? setupCB() : setState(setupCB);
|
synchronousCall && !_didLoadSynchronously ? setupCB() : setState(setupCB);
|
||||||
|
|||||||
Reference in New Issue
Block a user