소스 검색

Fix border for last items

vishnukvmd 2 년 전
부모
커밋
9581f29c4e
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 9 5
      lib/ui/sharing/album_participants_page.dart

+ 9 - 5
lib/ui/sharing/album_participants_page.dart

@@ -234,13 +234,17 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                             }
                           },
                           isTopBorderRadiusRemoved: listIndex > 0,
-                          isBottomBorderRadiusRemoved: true,
+                          isBottomBorderRadiusRemoved:
+                              listIndex == viewers.length,
                           borderRadius: 8,
                         ),
-                        DividerWidget(
-                          dividerType: DividerType.menu,
-                          bgColor: getEnteColorScheme(context).blurStrokeFaint,
-                        ),
+                        listIndex == viewers.length
+                            ? DividerWidget(
+                                dividerType: DividerType.menu,
+                                bgColor:
+                                    getEnteColorScheme(context).blurStrokeFaint,
+                              )
+                            : const SizedBox.shrink(),
                       ],
                     );
                   } else if (index == (1 + viewers.length) && isOwner) {