mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -1280,72 +1280,76 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Material(
|
||||||
children: [
|
color: Theme.of(context).colorScheme.surface,
|
||||||
if (tabs.isEmpty)
|
child: Row(
|
||||||
const Spacer()
|
children: [
|
||||||
else
|
if (tabs.isEmpty)
|
||||||
|
const Spacer()
|
||||||
|
else
|
||||||
|
Flexible(
|
||||||
|
flex: tabs.length == 3 ? 2 : 1,
|
||||||
|
child: showReply ? Obx(() => tabbar()) : tabbar(),
|
||||||
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
flex: tabs.length == 3 ? 2 : 1,
|
flex: 1,
|
||||||
child: showReply ? Obx(() => tabbar()) : tabbar(),
|
child: Center(
|
||||||
),
|
child: Row(
|
||||||
Flexible(
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
flex: 1,
|
children: [
|
||||||
child: Center(
|
SizedBox(
|
||||||
child: Row(
|
height: 32,
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
child: TextButton(
|
||||||
children: [
|
style: ButtonStyle(
|
||||||
SizedBox(
|
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||||
height: 32,
|
),
|
||||||
child: TextButton(
|
onPressed: videoDetailController.showShootDanmakuSheet,
|
||||||
style: ButtonStyle(
|
child: Text(
|
||||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
'发弹幕',
|
||||||
),
|
style: TextStyle(
|
||||||
onPressed: videoDetailController.showShootDanmakuSheet,
|
fontSize: 12,
|
||||||
child: Text(
|
color:
|
||||||
'发弹幕',
|
Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
style: TextStyle(
|
),
|
||||||
fontSize: 12,
|
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
SizedBox(
|
||||||
SizedBox(
|
width: 38,
|
||||||
width: 38,
|
height: 38,
|
||||||
height: 38,
|
child: Obx(
|
||||||
child: Obx(
|
() => IconButton(
|
||||||
() => IconButton(
|
onPressed: () {
|
||||||
onPressed: () {
|
videoDetailController
|
||||||
videoDetailController
|
.plPlayerController.isOpenDanmu.value =
|
||||||
.plPlayerController.isOpenDanmu.value =
|
!videoDetailController
|
||||||
!videoDetailController
|
.plPlayerController.isOpenDanmu.value;
|
||||||
.plPlayerController.isOpenDanmu.value;
|
setting.put(
|
||||||
setting.put(
|
SettingBoxKey.enableShowDanmaku,
|
||||||
SettingBoxKey.enableShowDanmaku,
|
videoDetailController
|
||||||
videoDetailController
|
.plPlayerController.isOpenDanmu.value);
|
||||||
.plPlayerController.isOpenDanmu.value);
|
},
|
||||||
},
|
icon: SvgPicture.asset(
|
||||||
icon: SvgPicture.asset(
|
videoDetailController
|
||||||
videoDetailController
|
.plPlayerController.isOpenDanmu.value
|
||||||
.plPlayerController.isOpenDanmu.value
|
? 'assets/images/video/danmu_open.svg'
|
||||||
? 'assets/images/video/danmu_open.svg'
|
: 'assets/images/video/danmu_close.svg',
|
||||||
: 'assets/images/video/danmu_close.svg',
|
// ignore: deprecated_member_use
|
||||||
// ignore: deprecated_member_use
|
color: videoDetailController
|
||||||
color: videoDetailController
|
.plPlayerController.isOpenDanmu.value
|
||||||
.plPlayerController.isOpenDanmu.value
|
? Theme.of(context).colorScheme.secondary
|
||||||
? Theme.of(context).colorScheme.secondary
|
: Theme.of(context).colorScheme.outline,
|
||||||
: Theme.of(context).colorScheme.outline,
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(width: 14),
|
||||||
const SizedBox(width: 14),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user