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,12 +167,14 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
} }
: null, : null,
isTopBorderRadiusRemoved: listIndex > 0, isTopBorderRadiusRemoved: listIndex > 0,
isBottomBorderRadiusRemoved: true, isBottomBorderRadiusRemoved: !isLastItem,
singleBorderRadius: 8, singleBorderRadius: 8,
), ),
DividerWidget( isLastItem
? const SizedBox.shrink()
: DividerWidget(
dividerType: DividerType.menu, dividerType: DividerType.menu,
bgColor: getEnteColorScheme(context).blurStrokeFaint, bgColor: getEnteColorScheme(context).fillFaint,
), ),
], ],
); );