mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-10 01:07:29 +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) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final mediaQuery = MediaQuery.of(context);
|
final mediaQuery = MediaQuery.of(context);
|
||||||
|
|
||||||
final downloadCount = ref.watch(
|
final downloadCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||||
downloadManagerProvider.select((s) => s.$downloadCount),
|
|
||||||
);
|
|
||||||
|
|
||||||
final layoutMode =
|
final layoutMode =
|
||||||
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
||||||
|
|||||||
@ -26,9 +26,7 @@ class SpotubeNavigationBar extends HookConsumerWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, ref) {
|
Widget build(BuildContext context, ref) {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
final downloadCount = ref.watch(
|
final downloadCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||||
downloadManagerProvider.select((s) => s.$downloadCount),
|
|
||||||
);
|
|
||||||
final mediaQuery = MediaQuery.of(context);
|
final mediaQuery = MediaQuery.of(context);
|
||||||
final layoutMode =
|
final layoutMode =
|
||||||
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
ref.watch(userPreferencesProvider.select((s) => s.layoutMode));
|
||||||
|
|||||||
@ -15,8 +15,7 @@ class LibraryPage extends HookConsumerWidget {
|
|||||||
const LibraryPage({Key? key}) : super(key: key);
|
const LibraryPage({Key? key}) : super(key: key);
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, ref) {
|
Widget build(BuildContext context, ref) {
|
||||||
final downloadingCount =
|
final downloadingCount = ref.watch(downloadManagerProvider).$downloadCount;
|
||||||
ref.watch(downloadManagerProvider.select((s) => s.$downloadCount));
|
|
||||||
|
|
||||||
return DefaultTabController(
|
return DefaultTabController(
|
||||||
length: 5,
|
length: 5,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user