fix: invalid downloadCount

This commit is contained in:
Kingkor Roy Tirtho 2023-08-07 16:47:33 +06:00
parent 869d063023
commit c6386e1578
3 changed files with 3 additions and 8 deletions

View File

@ -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));

View File

@ -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));

View File

@ -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,