mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
Change selected colors in AppListItem
This commit is contained in:
parent
bb973bb508
commit
daaffb6bd5
@ -70,6 +70,7 @@ class _AppListItemState<T> extends ConsumerState<AppListItem> {
|
||||
final doubleTapIntent = widget.doubleTapIntent;
|
||||
final trailing = widget.trailing;
|
||||
final hasFeature = ref.watch(featureProvider);
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
|
||||
return Semantics(
|
||||
label: widget.semanticTitle ?? widget.title,
|
||||
@ -124,6 +125,10 @@ class _AppListItemState<T> extends ConsumerState<AppListItem> {
|
||||
ListTile(
|
||||
mouseCursor:
|
||||
widget.tapIntent != null ? SystemMouseCursors.click : null,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(48)),
|
||||
selectedTileColor: colorScheme.secondaryContainer,
|
||||
selectedColor: colorScheme.onSecondaryContainer,
|
||||
selected: widget.selected,
|
||||
leading: widget.leading,
|
||||
title: Text(
|
||||
|
@ -249,7 +249,10 @@ class _CertificateListItem extends ConsumerWidget {
|
||||
leading: CircleAvatar(
|
||||
foregroundColor: colorScheme.onSecondary,
|
||||
backgroundColor: colorScheme.secondary,
|
||||
child: Icon(slot.isRetired ? Symbols.manage_history : Symbols.badge),
|
||||
child: Icon(
|
||||
slot.isRetired ? Symbols.manage_history : Symbols.badge,
|
||||
fill: selected ? 1 : 0,
|
||||
),
|
||||
),
|
||||
title: slot.getDisplayName(l10n),
|
||||
subtitle: certInfo != null
|
||||
|
Loading…
Reference in New Issue
Block a user