mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
@@ -100,9 +100,7 @@ class RenderLoadingIndicator extends RenderBox {
|
|||||||
..drawCircle(
|
..drawCircle(
|
||||||
center,
|
center,
|
||||||
radius,
|
radius,
|
||||||
paint
|
paint..color = Colors.white,
|
||||||
..strokeWidth = strokeWidth
|
|
||||||
..color = Colors.white,
|
|
||||||
)
|
)
|
||||||
..drawCircle(
|
..drawCircle(
|
||||||
center,
|
center,
|
||||||
|
|||||||
@@ -406,6 +406,9 @@ class _ViewerState extends State<Viewer> with SingleTickerProviderStateMixin {
|
|||||||
}
|
}
|
||||||
final containerWidth = widget.containerSize.width;
|
final containerWidth = widget.containerSize.width;
|
||||||
final imageWidth = _imageSize.width * _scale;
|
final imageWidth = _imageSize.width * _scale;
|
||||||
|
if (imageWidth <= containerWidth) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
final dx = (1 - _scale) * containerWidth / 2;
|
final dx = (1 - _scale) * containerWidth / 2;
|
||||||
final dxOffset = (imageWidth - containerWidth) / 2;
|
final dxOffset = (imageWidth - containerWidth) / 2;
|
||||||
if (initialPosition.dx < lastPosition.global.dx) {
|
if (initialPosition.dx < lastPosition.global.dx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user