opt: video intro panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 12:04:18 +08:00
parent 32d2ec8ca0
commit b62d3a03bc

View File

@@ -548,64 +548,66 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
), ),
), ),
), ),
const SizedBox(height: 8),
Stack( Stack(
children: [ children: [
GestureDetector( GestureDetector(
behavior: HitTestBehavior.translucent, behavior: HitTestBehavior.translucent,
onTap: showIntroDetail, onTap: showIntroDetail,
child: Row( child: Padding(
children: <Widget>[ padding: const EdgeInsets.only(top: 8),
statView( child: Row(
context: context, children: <Widget>[
theme: 'gray', statView(
view: !widget.loadingStatus context: context,
? videoDetail.stat?.view ?? '-' theme: 'gray',
: videoItem['stat']?.view ?? '-', view: !widget.loadingStatus
size: 'medium', ? videoDetail.stat?.view ?? '-'
), : videoItem['stat']?.view ?? '-',
const SizedBox(width: 10), size: 'medium',
statDanMu(
context: context,
theme: 'gray',
danmu: !widget.loadingStatus
? videoDetail.stat?.danmu ?? '-'
: videoItem['stat']?.danmu ?? '-',
size: 'medium',
),
const SizedBox(width: 10),
Text(
Utils.dateFormat(
!widget.loadingStatus
? videoDetail.pubdate
: videoItem['pubdate'],
formatType: 'detail'),
style: TextStyle(
fontSize: 12,
color: t.colorScheme.outline,
), ),
),
if (MineController.anonymity.value) ...<Widget>[
const SizedBox(width: 10), const SizedBox(width: 10),
Icon( statDanMu(
MdiIcons.incognito, context: context,
size: 15, theme: 'gray',
color: t.colorScheme.outline, danmu: !widget.loadingStatus
semanticLabel: '无痕', ? videoDetail.stat?.danmu ?? '-'
: videoItem['stat']?.danmu ?? '-',
size: 'medium',
), ),
], const SizedBox(width: 10),
const SizedBox(width: 10), Text(
if (videoIntroController.isShowOnlineTotal) Utils.dateFormat(
Obx( !widget.loadingStatus
() => Text( ? videoDetail.pubdate
'${videoIntroController.total.value}人在看', : videoItem['pubdate'],
style: TextStyle( formatType: 'detail'),
fontSize: 12, style: TextStyle(
color: t.colorScheme.outline, fontSize: 12,
), color: t.colorScheme.outline,
), ),
), ),
], if (MineController.anonymity.value) ...<Widget>[
const SizedBox(width: 10),
Icon(
MdiIcons.incognito,
size: 15,
color: t.colorScheme.outline,
semanticLabel: '无痕',
),
],
const SizedBox(width: 10),
if (videoIntroController.isShowOnlineTotal)
Obx(
() => Text(
'${videoIntroController.total.value}人在看',
style: TextStyle(
fontSize: 12,
color: t.colorScheme.outline,
),
),
),
],
),
), ),
), ),
if (videoIntroController.enableAi) if (videoIntroController.enableAi)