custom player/max volume

Closes #2199
Closes #2358

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-08 17:28:32 +08:00
parent fe15024384
commit 90d79b236f
19 changed files with 293 additions and 143 deletions

View File

@@ -63,7 +63,7 @@ class PlayerFocus extends StatelessWidget {
void _setVolume({required bool isIncrease}) {
final volume = isIncrease
? math.min(
PlPlayerController.maxVolume,
plPlayerController.maxVolume,
plPlayerController.volume.value + 0.1,
)
: math.max(0.0, plPlayerController.volume.value - 0.1);