Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-14 11:20:13 +08:00
parent beb7eb1aea
commit c70c9829c0
2 changed files with 4 additions and 3 deletions

View File

@@ -100,9 +100,7 @@ class RenderLoadingIndicator extends RenderBox {
..drawCircle(
center,
radius,
paint
..strokeWidth = strokeWidth
..color = Colors.white,
paint..color = Colors.white,
)
..drawCircle(
center,

View File

@@ -406,6 +406,9 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
}
final containerWidth = widget.containerSize.width;
final imageWidth = _imageSize.width * _scale;
if (imageWidth <= containerWidth) {
return true;
}
final dx = (1 - _scale) * containerWidth / 2;
final dxOffset = (imageWidth - containerWidth) / 2;
if (initialPosition.dx < lastPosition.global.dx) {