mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 16:27:31 +00:00
fix: invalid downloadCount
This commit is contained in:
parent
869d063023
commit
c6386e1578
@ -51,9 +51,7 @@ class Sidebar extends HookConsumerWidget {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
|
||||
final downloadCount = ref.watch(
|
||||
downloadManagerProvider.select((s) => s.$downloadCount),
|
||||
);
|
||||
final downloadCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||
|
||||
final layoutMode =
|
||||
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
||||
|
||||
@ -26,9 +26,7 @@ class SpotubeNavigationBar extends HookConsumerWidget {
|
||||
@override
|
||||
Widget build(BuildContext context, ref) {
|
||||
final theme = Theme.of(context);
|
||||
final downloadCount = ref.watch(
|
||||
downloadManagerProvider.select((s) => s.$downloadCount),
|
||||
);
|
||||
final downloadCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
final layoutMode =
|
||||
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
||||
|
||||
@ -15,8 +15,7 @@ class LibraryPage extends HookConsumerWidget {
|
||||
const LibraryPage({Key? key}) : super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context, ref) {
|
||||
final downloadingCount =
|
||||
ref.watch(downloadManagerProvider.select((s) => s.$downloadCount));
|
||||
final downloadingCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||
|
||||
return DefaultTabController(
|
||||
length: 5,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user