Skip to content

Commit 76c2a1a

Browse files
committed
fix(library_page): correct border radius logic for playlist items
1 parent 8180fa6 commit 76c2a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/screens/library_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ class _LibraryPageState extends State<LibraryPage> {
326326
final playlist = playlists[index];
327327
final isLastItem = index == playlists.length - 1;
328328
final borderRadius =
329-
(hasItemsBefore && index == 0) || (hasItemsAfter && isLastItem)
329+
(hasItemsBefore && index == 0 && !isLastItem) ||
330+
(hasItemsAfter && isLastItem)
330331
? BorderRadius.zero
331332
: getItemBorderRadius(index, playlists.length);
332333
return PlaylistBar(

0 commit comments

Comments
 (0)