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

@@ -3,6 +3,7 @@ import 'dart:math' as math;
import 'package:PiliPlus/common/widgets/flutter/vertical_slider.dart';
import 'package:PiliPlus/pages/audio/controller.dart';
import 'package:PiliPlus/utils/storage_pref.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart' show RenderProxyBox, BoxHitTestResult;
import 'package:get/get.dart';
@@ -140,7 +141,7 @@ class _VolumeButtonState extends State<VolumeButton> {
child: VerticalSlider(
year2023: true,
min: 0.0,
max: 2.0,
max: Pref.maxVolume,
value: volume,
showValueIndicator: .never,
onChanged: widget.controller.setVolume,