Rearrange tile for less clutter (#2755)

* Remove id, replace with level info

* chore: dart formatting

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
Kelrap 2025-05-09 15:57:09 -04:00 committed by GitHub
parent 0a0905bf27
commit a8d6e7fc8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 20 deletions

View file

@ -41,9 +41,6 @@ class ParticipantListItem extends StatelessWidget {
overflow: TextOverflow.ellipsis,
),
),
// #Pangea
LevelDisplayName(userId: user.id),
// Pangea#
if (permissionBatch.isNotEmpty)
Container(
padding: const EdgeInsets.symmetric(
@ -88,11 +85,15 @@ class ParticipantListItem extends StatelessWidget {
),
],
),
subtitle: Text(
user.id,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
subtitle:
// #Pangea
LevelDisplayName(userId: user.id),
// Text(
// user.id,
// maxLines: 1,
// overflow: TextOverflow.ellipsis,
// ),
// Pangea#
leading: Opacity(
opacity: user.membership == Membership.join ? 1 : 0.5,
child: Avatar(

View file

@ -464,15 +464,17 @@ class _InviteContactListTile extends StatelessWidget {
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
subtitle: Text(
profile.userId,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: theme.colorScheme.secondary,
),
),
// #Pangea
subtitle:
// #Pangea
LevelDisplayName(userId: profile.userId),
// Text(
// profile.userId,
// maxLines: 1,
// overflow: TextOverflow.ellipsis,
// style: TextStyle(
// color: theme.colorScheme.secondary,
// ),
// ),
// trailing: TextButton.icon(
// onPressed: isMember ? null : onTap,
// label: Text(isMember ? l10n.participant : l10n.invite),
@ -481,7 +483,6 @@ class _InviteContactListTile extends StatelessWidget {
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
LevelDisplayName(userId: profile.userId),
if (membershipCopy() != null)
Container(
padding: const EdgeInsets.all(4),

View file

@ -40,8 +40,8 @@ class LevelDisplayNameState extends State<LevelDisplayName> {
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
horizontal: 0,
vertical: 2.0,
),
child: Row(
children: <Widget>[