mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-08 20:08:45 +03:00
Merge PR #1561
This commit is contained in:
commit
e20e3283a6
@ -30,6 +30,7 @@ Future showPopupMenu(BuildContext context, Offset globalPosition,
|
||||
globalPosition.dx,
|
||||
0,
|
||||
),
|
||||
popUpAnimationStyle: AnimationStyle(duration: Duration.zero),
|
||||
items: actions.map((e) => _buildMenuItem(context, e)).toList(),
|
||||
);
|
||||
|
||||
|
@ -652,7 +652,15 @@ class _AppPageState extends ConsumerState<AppPage> {
|
||||
const SizedBox(width: 12),
|
||||
],
|
||||
)
|
||||
: null,
|
||||
: Builder(
|
||||
builder: (context) {
|
||||
// Need to wrap with builder to get Scaffold context
|
||||
return IconButton(
|
||||
onPressed: () => Scaffold.of(context).openDrawer(),
|
||||
icon: const Icon(Symbols.menu),
|
||||
);
|
||||
},
|
||||
),
|
||||
actions: [
|
||||
if (widget.actionButtonBuilder == null &&
|
||||
(widget.keyActionsBuilder != null && !hasManage))
|
||||
|
@ -189,6 +189,7 @@ class _DeviceMenuButton extends ConsumerWidget {
|
||||
itemBuilder: (context) {
|
||||
return menuItems;
|
||||
},
|
||||
popUpAnimationStyle: AnimationStyle(duration: Duration.zero),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -93,7 +93,7 @@ extension on Section {
|
||||
Section.passkeys => Symbols.passkey,
|
||||
Section.fingerprints => Symbols.fingerprint,
|
||||
Section.slots => Symbols.touch_app,
|
||||
Section.certificates => Symbols.badge,
|
||||
Section.certificates => Symbols.id_card,
|
||||
};
|
||||
|
||||
Key get _key => switch (this) {
|
||||
|
@ -48,7 +48,7 @@ extension on Capability {
|
||||
IconData get _icon => switch (this) {
|
||||
Capability.oath => Symbols.supervisor_account,
|
||||
Capability.fido2 => Symbols.passkey,
|
||||
Capability.piv => Symbols.badge,
|
||||
Capability.piv => Symbols.id_card,
|
||||
_ => throw UnsupportedError('Icon not defined'),
|
||||
};
|
||||
}
|
||||
|
@ -72,6 +72,7 @@ class _ChoiceFilterChipState<T> extends State<ChoiceFilterChip<T>> {
|
||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||
),
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
popUpAnimationStyle: AnimationStyle(duration: Duration.zero),
|
||||
items: widget.items
|
||||
.map((e) => PopupMenuItem<T>(
|
||||
enabled:
|
||||
|
@ -535,10 +535,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: material_symbols_icons
|
||||
sha256: "4410e4bb5c6e16d811340f94532c0b3161d2a0ba60b41d0fa8a603186857cabe"
|
||||
sha256: "36d4e5dd72f2fd282aca127cc4c4c29786d702cb506231ea73a5497fc324bf46"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.2719.3"
|
||||
version: "4.2741.0"
|
||||
menu_base:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -70,7 +70,7 @@ dependencies:
|
||||
io: ^1.0.4
|
||||
base32: ^2.1.3
|
||||
convert: ^3.1.1
|
||||
material_symbols_icons: ^4.2719.3
|
||||
material_symbols_icons: ^4.2741.0
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
|
Loading…
Reference in New Issue
Block a user