|
@@ -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) {
|