diff --git a/lib/screens/library_page.dart b/lib/screens/library_page.dart index ebac132f..144d2822 100644 --- a/lib/screens/library_page.dart +++ b/lib/screens/library_page.dart @@ -78,6 +78,8 @@ class _LibraryPageState extends State { } Widget _buildUserPlaylistsSection(Color primaryColor) { + final isUserPlaylistsEmpty = + userPlaylists.isEmpty && userCustomPlaylists.isEmpty; return Column( children: [ Row( @@ -114,7 +116,9 @@ class _LibraryPageState extends State { onPressed: () => NavigationManager.router.go('/library/userSongs/offline'), cubeIcon: FluentIcons.cellular_off_24_filled, - borderRadius: commonCustomBarRadiusLast, + borderRadius: isUserPlaylistsEmpty + ? commonCustomBarRadiusLast + : BorderRadius.zero, ), ], ), @@ -171,6 +175,7 @@ class _LibraryPageState extends State { } Widget _buildPlaylistListView(BuildContext context, List playlists) { + final _length = playlists.length + 3; return ListView.builder( shrinkWrap: true, physics: const NeverScrollableScrollPhysics(), @@ -178,7 +183,9 @@ class _LibraryPageState extends State { padding: commonListViewBottmomPadding, itemBuilder: (BuildContext context, index) { final playlist = playlists[index]; - final borderRadius = getItemBorderRadius(index, playlists.length); + final _index = index + + 3; // as we have three more automatically generated playlists + final borderRadius = getItemBorderRadius(_index, _length); return PlaylistBar( key: ValueKey(playlist['ytid']), playlist['title'],