mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 22:03:55 +03:00
Merge PR #1178
This commit is contained in:
commit
0f4fd4b2bc
@ -90,7 +90,9 @@ class _OathAddMultiAccountPageState
|
|||||||
controlAffinity: ListTileControlAffinity.leading,
|
controlAffinity: ListTileControlAffinity.leading,
|
||||||
secondary: Row(mainAxisSize: MainAxisSize.min, children: [
|
secondary: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||||
if (isTouchSupported())
|
if (isTouchSupported())
|
||||||
IconButton(
|
Semantics(
|
||||||
|
label: l10n.s_require_touch,
|
||||||
|
child: IconButton(
|
||||||
tooltip: l10n.s_require_touch,
|
tooltip: l10n.s_require_touch,
|
||||||
color: touch ? colorScheme.primary : null,
|
color: touch ? colorScheme.primary : null,
|
||||||
onPressed: unique
|
onPressed: unique
|
||||||
@ -104,7 +106,10 @@ class _OathAddMultiAccountPageState
|
|||||||
icon: Icon(touch
|
icon: Icon(touch
|
||||||
? Icons.touch_app
|
? Icons.touch_app
|
||||||
: Icons.touch_app_outlined)),
|
: Icons.touch_app_outlined)),
|
||||||
IconButton(
|
),
|
||||||
|
Semantics(
|
||||||
|
label: l10n.s_rename_account,
|
||||||
|
child: IconButton(
|
||||||
tooltip: l10n.s_rename_account,
|
tooltip: l10n.s_rename_account,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final node = ref
|
final node = ref
|
||||||
@ -121,7 +126,8 @@ class _OathAddMultiAccountPageState
|
|||||||
name: cred.name,
|
name: cred.name,
|
||||||
oathType: cred.oathType,
|
oathType: cred.oathType,
|
||||||
period: cred.period,
|
period: cred.period,
|
||||||
existing: (widget.credentialsFromUri ?? [])
|
existing: (widget.credentialsFromUri ??
|
||||||
|
[])
|
||||||
.map((e) => (e.issuer, e.name))
|
.map((e) => (e.issuer, e.name))
|
||||||
.followedBy((_credentials ?? [])
|
.followedBy((_credentials ?? [])
|
||||||
.map((e) => (e.issuer, e.name)))
|
.map((e) => (e.issuer, e.name)))
|
||||||
@ -146,6 +152,7 @@ class _OathAddMultiAccountPageState
|
|||||||
data: IconTheme.of(context),
|
data: IconTheme.of(context),
|
||||||
child: const Icon(Icons.edit_outlined)),
|
child: const Icon(Icons.edit_outlined)),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
]),
|
]),
|
||||||
title: Text(cred.issuer ?? cred.name,
|
title: Text(cred.issuer ?? cred.name,
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
|
@ -97,7 +97,9 @@ class _CertificateListItem extends StatelessWidget {
|
|||||||
final l10n = AppLocalizations.of(context)!;
|
final l10n = AppLocalizations.of(context)!;
|
||||||
final colorScheme = Theme.of(context).colorScheme;
|
final colorScheme = Theme.of(context).colorScheme;
|
||||||
|
|
||||||
return AppListItem(
|
return Semantics(
|
||||||
|
label: slot.getDisplayName(l10n),
|
||||||
|
child: AppListItem(
|
||||||
leading: CircleAvatar(
|
leading: CircleAvatar(
|
||||||
foregroundColor: colorScheme.onSecondary,
|
foregroundColor: colorScheme.onSecondary,
|
||||||
backgroundColor: colorScheme.secondary,
|
backgroundColor: colorScheme.secondary,
|
||||||
@ -114,7 +116,8 @@ class _CertificateListItem extends StatelessWidget {
|
|||||||
onPressed: Actions.handler(context, const OpenIntent()),
|
onPressed: Actions.handler(context, const OpenIntent()),
|
||||||
child: const Icon(Icons.more_horiz),
|
child: const Icon(Icons.more_horiz),
|
||||||
),
|
),
|
||||||
buildPopupActions: (context) => buildSlotActions(certInfo != null, l10n),
|
buildPopupActions: (context) =>
|
||||||
);
|
buildSlotActions(certInfo != null, l10n),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user