mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-26 12:20:17 +08:00
revert image cache patch
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_viewer/hero.dart';
|
||||
import 'package:PiliPlus/models/common/image_preview_type.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/image_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:cached_network_image_ce/cached_network_image.dart';
|
||||
@@ -42,7 +43,7 @@ Widget htmlRender({
|
||||
if (clazz?.contains('cut-off') == true || height != null) {
|
||||
return CachedNetworkImage(
|
||||
width: maxWidth,
|
||||
memCacheWidth: maxWidth,
|
||||
memCacheWidth: maxWidth.cacheSize,
|
||||
height: height != null ? double.parse(height) : null,
|
||||
imageUrl: ImageUtils.thumbnailUrl(imgUrl),
|
||||
fit: BoxFit.contain,
|
||||
@@ -60,7 +61,7 @@ Widget htmlRender({
|
||||
child: CachedNetworkImage(
|
||||
width: width,
|
||||
height: isEmote ? 22.0 : null,
|
||||
memCacheWidth: width,
|
||||
memCacheWidth: width.cacheSize,
|
||||
imageUrl: ImageUtils.thumbnailUrl(imgUrl, maxQuality: 60),
|
||||
fadeInDuration: const Duration(milliseconds: 120),
|
||||
fadeOutDuration: const Duration(milliseconds: 120),
|
||||
|
||||
Reference in New Issue
Block a user