mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-17 06:40:13 +08:00
revert image cache patch
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:PiliPlus/models/common/video/video_quality.dart';
|
||||
import 'package:PiliPlus/models_new/download/bili_download_entry_info.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/local/controller.dart';
|
||||
import 'package:PiliPlus/utils/duration_utils.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/path_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -86,8 +87,8 @@ class _LocalIntroPanelState extends State<LocalIntroPanel>
|
||||
width: 160,
|
||||
height: 110,
|
||||
fit: BoxFit.cover,
|
||||
cacheWidth: cacheWidth ? 160 : null,
|
||||
cacheHeight: cacheWidth ? null : 110,
|
||||
cacheWidth: cacheWidth ? 160.cacheSize : null,
|
||||
cacheHeight: cacheWidth ? null : 110.cacheSize,
|
||||
),
|
||||
)
|
||||
: NetworkImgLayer(
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:PiliPlus/models_new/video/video_detail/episode.dart'
|
||||
hide EpisodeItem;
|
||||
import 'package:PiliPlus/pages/video/controller.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
@@ -193,7 +194,7 @@ class _PgcPanelState extends State<PgcPanel> {
|
||||
Assets.livingStatic,
|
||||
color: theme.primary,
|
||||
height: 12,
|
||||
cacheHeight: 12,
|
||||
cacheHeight: 12.cacheSize,
|
||||
semanticLabel: "正在播放:",
|
||||
),
|
||||
),
|
||||
@@ -215,7 +216,7 @@ class _PgcPanelState extends State<PgcPanel> {
|
||||
Image.asset(
|
||||
Assets.vipIcon,
|
||||
height: 16,
|
||||
cacheHeight: 16,
|
||||
cacheHeight: 16.cacheSize,
|
||||
semanticLabel: "大会员",
|
||||
)
|
||||
else
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:PiliPlus/common/assets.dart';
|
||||
import 'package:PiliPlus/models_new/video/video_detail/page.dart';
|
||||
import 'package:PiliPlus/pages/video/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/controller.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/id_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
@@ -200,7 +201,7 @@ class _PagesPanelState extends State<PagesPanel> {
|
||||
Assets.livingStatic,
|
||||
color: theme.colorScheme.primary,
|
||||
height: 12,
|
||||
cacheHeight: 12,
|
||||
cacheHeight: 12.cacheSize,
|
||||
semanticLabel: "正在播放:",
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:PiliPlus/models_new/video/video_detail/episode.dart';
|
||||
import 'package:PiliPlus/models_new/video/video_detail/section.dart';
|
||||
import 'package:PiliPlus/pages/video/controller.dart';
|
||||
import 'package:PiliPlus/pages/video/introduction/ugc/controller.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
@@ -129,7 +130,7 @@ class _SeasonPanelState extends State<SeasonPanel> {
|
||||
Assets.livingStatic,
|
||||
color: theme.colorScheme.primary,
|
||||
height: 12,
|
||||
cacheHeight: 12,
|
||||
cacheHeight: 12.cacheSize,
|
||||
semanticLabel: "正在播放:",
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
|
||||
Reference in New Issue
Block a user