Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-22 21:13:16 +08:00
parent 55bed2e830
commit e770e39c8f
59 changed files with 1388 additions and 1265 deletions

View File

@@ -77,29 +77,33 @@ class BottomControl extends StatelessWidget {
),
const SizedBox(width: 10),
Obx(
() => SizedBox(
width: 35,
height: 35,
child: IconButton(
tooltip: '弹幕开关',
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
() {
final enableShowDanmaku =
plPlayerController.enableShowDanmaku.value;
return SizedBox(
width: 35,
height: 35,
child: IconButton(
tooltip: '弹幕开关',
style: ButtonStyle(
padding: WidgetStateProperty.all(EdgeInsets.zero),
),
onPressed: () {
final newVal = !enableShowDanmaku;
plPlayerController.enableShowDanmaku.value = newVal;
GStorage.setting
.put(SettingBoxKey.enableShowDanmaku, newVal);
},
icon: Icon(
size: 18,
enableShowDanmaku
? Icons.subtitles_outlined
: Icons.subtitles_off_outlined,
color: Colors.white,
),
),
onPressed: () {
plPlayerController.enableShowDanmaku.value =
!plPlayerController.enableShowDanmaku.value;
GStorage.setting.put(SettingBoxKey.enableShowDanmaku,
plPlayerController.enableShowDanmaku.value);
},
icon: Icon(
size: 18,
plPlayerController.enableShowDanmaku.value
? Icons.subtitles_outlined
: Icons.subtitles_off_outlined,
color: Colors.white,
),
),
),
);
},
),
Obx(
() => Container(