mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
refactor(ui): Show isPrimaryUser as an icon
This commit is contained in:
parent
9fda021c67
commit
a0d76a2979
|
@ -23,15 +23,17 @@ class UserListItem extends StatelessWidget {
|
|||
user.login[0].toUpperCase(),
|
||||
),
|
||||
),
|
||||
trailing: isPrimaryUser
|
||||
? Icon(Icons.admin_panel_settings_outlined,
|
||||
color: Theme.of(context).colorScheme.primary)
|
||||
: null,
|
||||
title: Text(
|
||||
user.login,
|
||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
decoration: isPrimaryUser
|
||||
? TextDecoration.underline
|
||||
: user.isFoundOnServer
|
||||
? TextDecoration.none
|
||||
: TextDecoration.lineThrough,
|
||||
decoration: user.isFoundOnServer
|
||||
? TextDecoration.none
|
||||
: TextDecoration.lineThrough,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue