Skip to content

Commit

Permalink
fix(home): bottom player transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Mar 23, 2023
1 parent e04515d commit 20c424c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
22 changes: 10 additions & 12 deletions lib/pages/home/genres.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,16 @@ class GenrePage extends HookConsumerWidget {
}
},
controller: scrollController,
child: SafeArea(
child: ListView.builder(
controller: scrollController,
itemCount: categories.length,
shrinkWrap: true,
itemBuilder: (context, index) {
if (searchText.value.isEmpty && index == categories.length - 1) {
return const ShimmerCategories();
}
return CategoryCard(categories[index]);
},
),
child: ListView.builder(
controller: scrollController,
itemCount: categories.length,
shrinkWrap: true,
itemBuilder: (context, index) {
if (searchText.value.isEmpty && index == categories.length - 1) {
return const ShimmerCategories();
}
return CategoryCard(categories[index]);
},
),
),
);
Expand Down
34 changes: 16 additions & 18 deletions lib/pages/home/personalized.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,22 @@ class PersonalizedPage extends HookConsumerWidget {

final newReleases = useQueries.album.newReleases(ref);

return SafeArea(
child: ListView(
children: [
PersonalizedItemCard(
playlists:
featuredPlaylistsQuery.pages.whereType<Page<PlaylistSimple>>(),
title: 'Featured',
hasNextPage: featuredPlaylistsQuery.hasNextPage,
onFetchMore: featuredPlaylistsQuery.fetchNext,
),
PersonalizedItemCard(
albums: newReleases.pages.whereType<Page<AlbumSimple>>(),
title: 'New Releases',
hasNextPage: newReleases.hasNextPage,
onFetchMore: newReleases.fetchNext,
),
],
),
return ListView(
children: [
PersonalizedItemCard(
playlists:
featuredPlaylistsQuery.pages.whereType<Page<PlaylistSimple>>(),
title: 'Featured',
hasNextPage: featuredPlaylistsQuery.hasNextPage,
onFetchMore: featuredPlaylistsQuery.fetchNext,
),
PersonalizedItemCard(
albums: newReleases.pages.whereType<Page<AlbumSimple>>(),
title: 'New Releases',
hasNextPage: newReleases.hasNextPage,
onFetchMore: newReleases.fetchNext,
),
],
);
}
}

0 comments on commit 20c424c

Please sign in to comment.