mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
Compare commits
1 Commits
bac0769933
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62c2c081d9 |
@@ -123,8 +123,6 @@ void main() async {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if (Platform.isMacOS) {
|
|
||||||
await setupServiceLocator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Request();
|
Request();
|
||||||
|
|||||||
@@ -183,14 +183,13 @@ List<SettingsModel> get playSettings => [
|
|||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
onChanged: (value) => allowRotateScreen = value,
|
onChanged: (value) => allowRotateScreen = value,
|
||||||
),
|
),
|
||||||
if (PlatformUtils.isMobile)
|
const SwitchModel(
|
||||||
const SwitchModel(
|
title: '后台播放',
|
||||||
title: '后台播放',
|
subtitle: '进入后台时继续播放',
|
||||||
subtitle: '进入后台时继续播放',
|
leading: Icon(Icons.motion_photos_pause_outlined),
|
||||||
leading: Icon(Icons.motion_photos_pause_outlined),
|
setKey: SettingBoxKey.continuePlayInBackground,
|
||||||
setKey: SettingBoxKey.continuePlayInBackground,
|
defaultVal: false,
|
||||||
defaultVal: false,
|
),
|
||||||
),
|
|
||||||
if (Platform.isAndroid) ...[
|
if (Platform.isAndroid) ...[
|
||||||
SwitchModel(
|
SwitchModel(
|
||||||
title: '后台画中画',
|
title: '后台画中画',
|
||||||
|
|||||||
@@ -565,18 +565,15 @@ class HeaderControlState extends State<HeaderControl>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (PlatformUtils.isMobile)
|
Obx(
|
||||||
Obx(
|
() => ActionRowLineItem(
|
||||||
() => ActionRowLineItem(
|
iconData: Icons.play_circle_outline,
|
||||||
iconData: Icons.play_circle_outline,
|
onTap: plPlayerController.setContinuePlayInBackground,
|
||||||
onTap:
|
text: " 后台播放 ",
|
||||||
plPlayerController.setContinuePlayInBackground,
|
selectStatus:
|
||||||
text: " 后台播放 ",
|
plPlayerController.continuePlayInBackground.value,
|
||||||
selectStatus: plPlayerController
|
|
||||||
.continuePlayInBackground
|
|
||||||
.value,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user