mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 18:18:38 +00:00
opt: video intro panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user