mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
fix: volume control not working
This commit is contained in:
parent
6d4f7e9a85
commit
83ac24ac02
@ -126,6 +126,7 @@ class BottomPlayer extends HookConsumerWidget {
|
||||
Container(
|
||||
height: 40,
|
||||
constraints: const BoxConstraints(maxWidth: 250),
|
||||
padding: const EdgeInsets.only(right: 10),
|
||||
child: Consumer(builder: (context, ref, _) {
|
||||
final volume = ref.watch(volumeProvider);
|
||||
return VolumeSlider(
|
||||
@ -138,7 +139,7 @@ class BottomPlayer extends HookConsumerWidget {
|
||||
}),
|
||||
)
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@ -274,6 +274,7 @@ class ConnectControlPage extends HookConsumerWidget {
|
||||
value: volume,
|
||||
onChanged: (value) {
|
||||
ref.read(volumeProvider.notifier).state = value;
|
||||
connectNotifier.setVolume(value);
|
||||
},
|
||||
);
|
||||
}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user