mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-11 11:50:12 +08:00
revert image cache patch
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:PiliPlus/common/widgets/pendant_avatar.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_medal_wall/data.dart';
|
||||
import 'package:PiliPlus/pages/member/widget/medal_widget.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -108,7 +109,7 @@ class MedalWall extends StatelessWidget {
|
||||
child: Image.asset(
|
||||
Assets.livingStatic,
|
||||
height: 16,
|
||||
cacheHeight: 16,
|
||||
cacheHeight: 16.cacheSize,
|
||||
color: colorScheme.primary,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -27,6 +27,7 @@ import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
import 'package:PiliPlus/utils/bili_utils.dart';
|
||||
import 'package:PiliPlus/utils/color_utils.dart';
|
||||
import 'package:PiliPlus/utils/extension/context_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/string_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
||||
import 'package:PiliPlus/utils/image_utils.dart';
|
||||
@@ -222,7 +223,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
isSeniorMember: card.levelInfo?.identity == 2,
|
||||
),
|
||||
height: 11,
|
||||
cacheHeight: 11,
|
||||
cacheHeight: 11.cacheSize,
|
||||
semanticLabel: '等级${card.levelInfo?.currentLevel}',
|
||||
),
|
||||
if (card.vip?.status == 1)
|
||||
@@ -630,7 +631,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
alignment: Alignment(0.0, img.dy),
|
||||
height: kHeaderHeight,
|
||||
width: width,
|
||||
memCacheWidth: memCacheWidth,
|
||||
memCacheWidth: memCacheWidth.cacheSize,
|
||||
imageUrl: ImageUtils.thumbnailUrl(img.header),
|
||||
fadeInDuration: const Duration(milliseconds: 120),
|
||||
fadeOutDuration: const Duration(milliseconds: 120),
|
||||
@@ -688,7 +689,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
alignment: alignment,
|
||||
height: kHeaderHeight,
|
||||
width: width,
|
||||
memCacheWidth: width,
|
||||
memCacheWidth: width.cacheSize,
|
||||
imageUrl: ImageUtils.thumbnailUrl(imgUrl),
|
||||
placeholder: (_, _) =>
|
||||
const SizedBox(width: .infinity, height: kHeaderHeight),
|
||||
@@ -735,7 +736,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
if (icon != null) ...[
|
||||
CachedNetworkImage(
|
||||
height: 20,
|
||||
memCacheHeight: 20,
|
||||
memCacheHeight: 20.cacheSize,
|
||||
imageUrl: ImageUtils.thumbnailUrl(icon),
|
||||
placeholder: (_, _) => const SizedBox.shrink(),
|
||||
fadeInDuration: .zero,
|
||||
|
||||
Reference in New Issue
Block a user