瀏覽代碼

Fix corner

vishnukvmd 2 年之前
父節點
當前提交
1e4d7d60e7
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      lib/ui/sharing/album_participants_page.dart

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

@@ -209,6 +209,7 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                     final currentUser = viewers[listIndex];
                     final currentUser = viewers[listIndex];
                     final isSameAsLoggedInUser =
                     final isSameAsLoggedInUser =
                         currentUserID == currentUser.id;
                         currentUserID == currentUser.id;
+                    final isLastItem = !isOwner && index == viewers.length;
                     return Column(
                     return Column(
                       children: [
                       children: [
                         MenuItemWidget(
                         MenuItemWidget(
@@ -234,16 +235,16 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                             }
                             }
                           },
                           },
                           isTopBorderRadiusRemoved: listIndex > 0,
                           isTopBorderRadiusRemoved: listIndex > 0,
-                          isBottomBorderRadiusRemoved: isOwner,
+                          isBottomBorderRadiusRemoved: !isLastItem,
                           borderRadius: 8,
                           borderRadius: 8,
                         ),
                         ),
-                        isOwner
-                            ? DividerWidget(
+                        isLastItem
+                            ? const SizedBox.shrink()
+                            : DividerWidget(
                                 dividerType: DividerType.solid,
                                 dividerType: DividerType.solid,
                                 bgColor:
                                 bgColor:
                                     getEnteColorScheme(context).blurStrokeFaint,
                                     getEnteColorScheme(context).blurStrokeFaint,
-                              )
-                            : const SizedBox.shrink(),
+                              ),
                       ],
                       ],
                     );
                     );
                   } else if (index == (1 + viewers.length) && isOwner) {
                   } else if (index == (1 + viewers.length) && isOwner) {