Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-26 16:34:02 +08:00
parent a623ceee47
commit 7049e5c63a
23 changed files with 71 additions and 116 deletions

View File

@@ -383,7 +383,7 @@ class _DownloadPanelState extends State<DownloadPanel> {
return Padding(
padding: const EdgeInsets.only(bottom: 2),
child: SizedBox(
height: 98,
height: 110,
child: Builder(
builder: (context) {
return Material(
@@ -412,8 +412,8 @@ class _DownloadPanelState extends State<DownloadPanel> {
children: [
NetworkImgLayer(
src: cover,
width: 140.8,
height: 88,
width: 160,
height: 100,
cacheWidth: cacheWidth,
),
if (duration != null && duration > 0)

View File

@@ -88,7 +88,7 @@ class LocalIntroController extends CommonIntroController {
}
final index = (-1).obs;
double get _offset => index * 100 + 7 - 35;
double get _offset => index * 112 + 7 - 35;
final list = RxList<BiliDownloadEntryInfo>();
@override

View File

@@ -42,7 +42,7 @@ class _LocalIntroPanelState extends State<LocalIntroPanel>
final item = _controller.list[index];
return _buildItem(theme, currIndex == index, index, item);
},
itemExtent: 100,
itemExtent: 112,
);
});
}
@@ -59,7 +59,7 @@ class _LocalIntroPanelState extends State<LocalIntroPanel>
return Padding(
padding: const EdgeInsets.only(bottom: 2),
child: SizedBox(
height: 98,
height: 110,
child: Material(
type: MaterialType.transparency,
child: InkWell(
@@ -85,15 +85,15 @@ class _LocalIntroPanelState extends State<LocalIntroPanel>
borderRadius: Style.mdRadius,
child: Image.file(
cover,
width: 140.8,
height: 88,
width: 160,
height: 100,
fit: BoxFit.cover,
cacheWidth: cacheWidth
? 140.8.cacheSize(context)
? 160.cacheSize(context)
: null,
cacheHeight: cacheWidth
? null
: 88.cacheSize(context),
: 100.cacheSize(context),
colorBlendMode: NetworkImgLayer.reduce
? BlendMode.modulate
: null,
@@ -104,8 +104,8 @@ class _LocalIntroPanelState extends State<LocalIntroPanel>
)
: NetworkImgLayer(
src: entry.cover,
width: 140.8,
height: 88,
width: 160,
height: 100,
),
PBadge(
text: DurationUtils.formatDuration(

View File

@@ -57,7 +57,7 @@ class _MediaListPanelState extends State<MediaListPanel>
final bvid = widget.bvid;
final bvIndex = widget.mediaList.indexWhere((item) => item.bvid == bvid);
_controller = ScrollController(
initialScrollOffset: bvIndex <= 0 ? 0 : bvIndex * 100.0 + 7,
initialScrollOffset: bvIndex <= 0 ? 0 : bvIndex * 112.0 + 7,
);
}
@@ -131,7 +131,7 @@ class _MediaListPanelState extends State<MediaListPanel>
),
sliver: Obx(
() => SliverFixedExtentList.builder(
itemExtent: 100,
itemExtent: 112,
itemCount: widget.mediaList.length,
itemBuilder: (context, index) {
if (index == widget.mediaList.length - 1 &&
@@ -166,7 +166,7 @@ class _MediaListPanelState extends State<MediaListPanel>
return Padding(
padding: const EdgeInsets.only(bottom: 2),
child: SizedBox(
height: 98,
height: 110,
child: Material(
type: MaterialType.transparency,
child: InkWell(
@@ -196,8 +196,8 @@ class _MediaListPanelState extends State<MediaListPanel>
children: [
NetworkImgLayer(
src: item.cover,
width: 140.8,
height: 88,
width: 160,
height: 100,
),
if (item.badge?.isNotEmpty == true)
PBadge(

View File

@@ -66,7 +66,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
final index = res.response?.indexWhere((e) => e.bvid == _bvid) ?? -1;
if (index != -1) {
WidgetsBinding.instance.addPostFrameCallback((_) {
_controller.scrollController.jumpTo(100.0 * index);
_controller.scrollController.jumpTo(112.0 * index);
});
}
}
@@ -177,7 +177,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
Loading() => SliverFixedExtentList.builder(
itemCount: 10,
itemBuilder: (_, _) => const VideoCardHSkeleton(),
itemExtent: 100,
itemExtent: 112,
),
Success(:final response) =>
response != null && response.isNotEmpty
@@ -209,7 +209,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
);
},
itemCount: response.length,
itemExtent: 100,
itemExtent: 112,
),
],
)

View File

@@ -144,7 +144,11 @@ class _ViewPointsPageState extends State<ViewPointsPage>
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
NetworkImgLayer(src: segment.url, width: 140.8, height: 88),
NetworkImgLayer(
src: segment.url,
width: 160,
height: 100,
),
const SizedBox(width: 10),
Expanded(
child: Column(