Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-17 17:35:22 +08:00
parent 57c57b02a5
commit 52498b3e34
6 changed files with 117 additions and 113 deletions

View File

@@ -231,7 +231,7 @@ Widget defaultUser({
width: 38,
height: 38,
child: IconButton(
tooltip: '默认用户头像',
tooltip: '点击登录',
style: ButtonStyle(
padding: const WidgetStatePropertyAll(EdgeInsets.zero),
backgroundColor: WidgetStatePropertyAll(

View File

@@ -140,18 +140,19 @@ List<SettingsModel> get playSettings => [
}
},
),
SettingsModel(
settingsType: SettingsType.sw1tch,
title: '最小化时暂停/还原时播放',
leading: const Icon(Icons.pause_circle_outline),
setKey: SettingBoxKey.pauseOnMinimize,
defaultVal: false,
onChanged: (value) {
try {
Get.find<MainController>().pauseOnMinimize = value;
} catch (_) {}
},
),
if (Utils.isDesktop)
SettingsModel(
settingsType: SettingsType.sw1tch,
title: '最小化时暂停/还原时播放',
leading: const Icon(Icons.pause_circle_outline),
setKey: SettingBoxKey.pauseOnMinimize,
defaultVal: false,
onChanged: (value) {
try {
Get.find<MainController>().pauseOnMinimize = value;
} catch (_) {}
},
),
const SettingsModel(
settingsType: SettingsType.sw1tch,
title: '启用键盘控制',

View File

@@ -198,7 +198,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
}
// 播放器状态监听
Future<void> playerListener(PlayerStatus? status) async {
Future<void> playerListener(PlayerStatus status) async {
try {
if (videoDetailController.scrollCtr.hasClients) {
bool isPlaying = status == PlayerStatus.playing;