This commit is contained in:
Elias Bonnici 2024-05-23 13:57:42 +02:00
commit e20e3283a6
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF
8 changed files with 17 additions and 6 deletions

View File

@ -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(),
);

View File

@ -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))

View File

@ -189,6 +189,7 @@ class _DeviceMenuButton extends ConsumerWidget {
itemBuilder: (context) {
return menuItems;
},
popUpAnimationStyle: AnimationStyle(duration: Duration.zero),
),
),
);

View File

@ -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) {

View File

@ -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'),
};
}

View File

@ -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:

View File

@ -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:

View File

@ -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: