mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
increase desktop max volume
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user