From 83ac24ac0275611d3e0b9896e3cfaea228584502 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 4 Apr 2024 21:35:43 +0600 Subject: [PATCH] fix: volume control not working --- lib/components/root/bottom_player.dart | 3 ++- lib/pages/connect/control/control.dart | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/root/bottom_player.dart b/lib/components/root/bottom_player.dart index e15e3717..19fa7c93 100644 --- a/lib/components/root/bottom_player.dart +++ b/lib/components/root/bottom_player.dart @@ -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 { }), ) ], - ) + ), ], ), ), diff --git a/lib/pages/connect/control/control.dart b/lib/pages/connect/control/control.dart index d8af9cb5..16256568 100644 --- a/lib/pages/connect/control/control.dart +++ b/lib/pages/connect/control/control.dart @@ -274,6 +274,7 @@ class ConnectControlPage extends HookConsumerWidget { value: volume, onChanged: (value) { ref.read(volumeProvider.notifier).state = value; + connectNotifier.setVolume(value); }, ); }),