From 20c424c77fe273a693213ebf88d50e4025bc8608 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 23 Mar 2023 19:06:03 +0600 Subject: [PATCH] fix(home): bottom player transparency --- lib/pages/home/genres.dart | 22 ++++++++++----------- lib/pages/home/personalized.dart | 34 +++++++++++++++----------------- 2 files changed, 26 insertions(+), 30 deletions(-) diff --git a/lib/pages/home/genres.dart b/lib/pages/home/genres.dart index 598092624..94625b49c 100644 --- a/lib/pages/home/genres.dart +++ b/lib/pages/home/genres.dart @@ -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]); + }, ), ), ); diff --git a/lib/pages/home/personalized.dart b/lib/pages/home/personalized.dart index 78fdbda03..ce1663aa3 100644 --- a/lib/pages/home/personalized.dart +++ b/lib/pages/home/personalized.dart @@ -110,24 +110,22 @@ class PersonalizedPage extends HookConsumerWidget { final newReleases = useQueries.album.newReleases(ref); - return SafeArea( - child: ListView( - children: [ - PersonalizedItemCard( - playlists: - featuredPlaylistsQuery.pages.whereType>(), - title: 'Featured', - hasNextPage: featuredPlaylistsQuery.hasNextPage, - onFetchMore: featuredPlaylistsQuery.fetchNext, - ), - PersonalizedItemCard( - albums: newReleases.pages.whereType>(), - title: 'New Releases', - hasNextPage: newReleases.hasNextPage, - onFetchMore: newReleases.fetchNext, - ), - ], - ), + return ListView( + children: [ + PersonalizedItemCard( + playlists: + featuredPlaylistsQuery.pages.whereType>(), + title: 'Featured', + hasNextPage: featuredPlaylistsQuery.hasNextPage, + onFetchMore: featuredPlaylistsQuery.fetchNext, + ), + PersonalizedItemCard( + albums: newReleases.pages.whereType>(), + title: 'New Releases', + hasNextPage: newReleases.hasNextPage, + onFetchMore: newReleases.fetchNext, + ), + ], ); } }