Merge pull request #890 from ente-io/UI_fixes

UI fixes
This commit is contained in:
Neeraj Gupta 2023-02-25 17:40:52 +05:30 committed by GitHub
commit e0c651fbeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

View file

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

View file

@ -160,7 +160,7 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
path.basenameWithoutExtension(file.displayName) +
path.extension(file.displayName).toUpperCase(),
),
subtitle: Row(
subtitle: Wrap(
children: [
showDimension
? Text(
@ -193,7 +193,7 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
horizontalTitleGap: 2,
leading: const Icon(Icons.camera_rounded),
title: Text(_exifData["takenOnDevice"] ?? "--"),
subtitle: Row(
subtitle: Wrap(
children: [
_exifData["fNumber"] != null
? Padding(