increase desktop max volume

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-17 14:05:30 +08:00
parent 830f3b60e0
commit 02e0d34127
3 changed files with 8 additions and 4 deletions

View File

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