opt later item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-06 18:26:18 +08:00
parent 40a19f2766
commit 554e96c820

View File

@@ -176,34 +176,17 @@ class VideoCardHLater extends StatelessWidget {
Widget content(BuildContext context, ThemeData theme) { Widget content(BuildContext context, ThemeData theme) {
final isPgc = videoItem.isPgc == true && videoItem.bangumi != null; final isPgc = videoItem.isPgc == true && videoItem.bangumi != null;
Widget bottom = Row( Widget stat = StatWidget(
spacing: 8,
children: [
StatWidget(
type: StatType.play, type: StatType.play,
value: videoItem.stat?.view, value: videoItem.stat?.view,
),
if (!isPgc)
StatWidget(
type: StatType.danmaku,
value: videoItem.stat?.danmaku,
),
const Spacer(),
iconButton(
tooltip: '移除',
context: context,
onPressed: () => ctr..toViewDel(context, index, videoItem.aid),
icon: Icons.clear,
iconColor: theme.colorScheme.outline,
bgColor: Colors.transparent,
),
],
); );
return Expanded( return Expanded(
child: Column( child: Stack(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (isPgc) ...[ Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: isPgc
? [
Text( Text(
videoItem.bangumi!.season!.title!, videoItem.bangumi!.season!.title!,
style: TextStyle( style: TextStyle(
@@ -226,8 +209,9 @@ class VideoCardHLater extends StatelessWidget {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
const Spacer(), const Spacer(),
bottom, stat,
] else ...[ ]
: [
Expanded( Expanded(
child: Text( child: Text(
videoItem.title!, videoItem.title!,
@@ -251,8 +235,30 @@ class VideoCardHLater extends StatelessWidget {
), ),
), ),
const SizedBox(height: 3), const SizedBox(height: 3),
bottom, Row(
spacing: 8,
children: [
stat,
StatWidget(
type: StatType.danmaku,
value: videoItem.stat?.danmaku,
),
], ],
),
],
),
Positioned(
right: 0,
bottom: 0,
child: iconButton(
tooltip: '移除',
context: context,
onPressed: () => ctr.toViewDel(context, index, videoItem.aid),
icon: Icons.clear,
iconColor: theme.colorScheme.outline,
bgColor: Colors.transparent,
),
),
], ],
), ),
); );