UI fixes on AlbumParicipantsPage

This commit is contained in:
ashilkn 2023-02-24 15:59:30 +05:30
parent 2ad667deb1
commit 4c8e4e4212

View file

@ -139,6 +139,8 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
final currentUser = collaborators[listIndex]; final currentUser = collaborators[listIndex];
final isSameAsLoggedInUser = final isSameAsLoggedInUser =
currentUserID == currentUser.id; currentUserID == currentUser.id;
final isLastItem =
!isOwner && index == collaborators.length;
return Column( return Column(
children: [ children: [
MenuItemWidget( MenuItemWidget(
@ -165,13 +167,15 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
} }
: null, : null,
isTopBorderRadiusRemoved: listIndex > 0, isTopBorderRadiusRemoved: listIndex > 0,
isBottomBorderRadiusRemoved: true, isBottomBorderRadiusRemoved: !isLastItem,
singleBorderRadius: 8, singleBorderRadius: 8,
), ),
DividerWidget( isLastItem
dividerType: DividerType.menu, ? const SizedBox.shrink()
bgColor: getEnteColorScheme(context).blurStrokeFaint, : DividerWidget(
), dividerType: DividerType.menu,
bgColor: getEnteColorScheme(context).fillFaint,
),
], ],
); );
} else if (index == (1 + collaborators.length) && isOwner) { } else if (index == (1 + collaborators.length) && isOwner) {