fix(home): bottom player transparency

This commit is contained in:
Kingkor Roy Tirtho 2023-03-23 19:06:03 +06:00
parent e04515d8e2
commit 20c424c77f
2 changed files with 26 additions and 30 deletions

View File

@ -68,18 +68,16 @@ class GenrePage extends HookConsumerWidget {
} }
}, },
controller: scrollController, controller: scrollController,
child: SafeArea( child: ListView.builder(
child: ListView.builder( controller: scrollController,
controller: scrollController, itemCount: categories.length,
itemCount: categories.length, shrinkWrap: true,
shrinkWrap: true, itemBuilder: (context, index) {
itemBuilder: (context, index) { if (searchText.value.isEmpty && index == categories.length - 1) {
if (searchText.value.isEmpty && index == categories.length - 1) { return const ShimmerCategories();
return const ShimmerCategories(); }
} return CategoryCard(categories[index]);
return CategoryCard(categories[index]); },
},
),
), ),
), ),
); );

View File

@ -110,24 +110,22 @@ class PersonalizedPage extends HookConsumerWidget {
final newReleases = useQueries.album.newReleases(ref); final newReleases = useQueries.album.newReleases(ref);
return SafeArea( return ListView(
child: ListView( children: [
children: [ PersonalizedItemCard(
PersonalizedItemCard( playlists:
playlists: featuredPlaylistsQuery.pages.whereType<Page<PlaylistSimple>>(),
featuredPlaylistsQuery.pages.whereType<Page<PlaylistSimple>>(), title: 'Featured',
title: 'Featured', hasNextPage: featuredPlaylistsQuery.hasNextPage,
hasNextPage: featuredPlaylistsQuery.hasNextPage, onFetchMore: featuredPlaylistsQuery.fetchNext,
onFetchMore: featuredPlaylistsQuery.fetchNext, ),
), PersonalizedItemCard(
PersonalizedItemCard( albums: newReleases.pages.whereType<Page<AlbumSimple>>(),
albums: newReleases.pages.whereType<Page<AlbumSimple>>(), title: 'New Releases',
title: 'New Releases', hasNextPage: newReleases.hasNextPage,
hasNextPage: newReleases.hasNextPage, onFetchMore: newReleases.fetchNext,
onFetchMore: newReleases.fetchNext, ),
), ],
],
),
); );
} }
} }