mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-30 22:30:13 +08:00
@@ -231,7 +231,7 @@ Widget defaultUser({
|
||||
width: 38,
|
||||
height: 38,
|
||||
child: IconButton(
|
||||
tooltip: '默认用户头像',
|
||||
tooltip: '点击登录',
|
||||
style: ButtonStyle(
|
||||
padding: const WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
backgroundColor: WidgetStatePropertyAll(
|
||||
|
||||
@@ -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: '启用键盘控制',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user