artist screen

This commit is contained in:
austinried
2025-12-07 11:26:21 +09:00
parent d245fc7fef
commit 805e6fff7a
10 changed files with 293 additions and 19 deletions

View File

@@ -77,6 +77,13 @@ class LibraryTabBarView extends HookConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final sourceId = ref.watch(sourceIdProvider);
final albumsQuery = AlbumsQuery(
sourceId: sourceId,
sort: IList([
SortingTerm.albumsDesc(AlbumsColumn.created),
]),
);
final songsQuery = SongsQuery(
sourceId: sourceId,
sort: IList([
@@ -95,7 +102,7 @@ class LibraryTabBarView extends HookConsumerWidget {
(tab) => TabScrollView(
index: LibraryTab.values.indexOf(tab),
sliver: switch (tab) {
LibraryTab.albums => AlbumsGrid(),
LibraryTab.albums => AlbumsGrid(query: albumsQuery),
LibraryTab.artists => ArtistsList(),
LibraryTab.playlists => PlaylistsList(),
LibraryTab.songs => SongsList(
@@ -107,7 +114,7 @@ class LibraryTabBarView extends HookConsumerWidget {
onTap: () {},
),
),
_ => ArtistsList(),
_ => SliverToBoxAdapter(child: Container()),
},
),
)