restore xcode settings

formatting

restore xcode settings

fix rebase
This commit is contained in:
mertalev
2025-07-24 14:25:25 +03:00
parent fc6415cdc3
commit 97a6c6d7a0
18 changed files with 255 additions and 908 deletions
@@ -106,8 +106,7 @@ class _ThumbnailState extends State<Thumbnail> {
super.didUpdateWidget(oldWidget);
if (oldWidget.imageProvider != widget.imageProvider ||
oldWidget.blurhash != widget.blurhash ||
(oldWidget.thumbhashMode == ThumbhashMode.disabled &&
oldWidget.thumbhashMode != ThumbhashMode.disabled)) {
(oldWidget.thumbhashMode == ThumbhashMode.disabled && oldWidget.thumbhashMode != ThumbhashMode.disabled)) {
_loadImage();
}
}
@@ -120,13 +119,11 @@ class _ThumbnailState extends State<Thumbnail> {
void _loadImage() {
_stopListeningToStream();
if (widget.thumbhashMode != ThumbhashMode.disabled &&
widget.blurhash != null) {
if (widget.thumbhashMode != ThumbhashMode.disabled && widget.blurhash != null) {
_decodeThumbhash();
}
if (widget.thumbhashMode != ThumbhashMode.only &&
widget.imageProvider != null) {
if (widget.thumbhashMode != ThumbhashMode.only && widget.imageProvider != null) {
_loadFromProvider();
}
}
@@ -298,9 +295,7 @@ class _ThumbnailRenderBox extends RenderBox {
if (_fadeStartTime != null) {
final elapsed = DateTime.now().difference(_fadeStartTime!);
_crossFadeProgress =
(elapsed.inMilliseconds / _fadeDuration.inMilliseconds)
.clamp(0.0, 1.0);
_crossFadeProgress = (elapsed.inMilliseconds / _fadeDuration.inMilliseconds).clamp(0.0, 1.0);
if (_crossFadeProgress < 1.0) {
SchedulerBinding.instance.scheduleFrameCallback((_) {