custom player/max volume

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-08 17:28:32 +08:00
parent e7efba6843
commit 7725b15f0b
20 changed files with 291 additions and 145 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);