From fc0c71d14e2dbe3bde8562b49b1c5769dc0e8202 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 16 Apr 2024 08:42:26 +0200 Subject: [PATCH] ignore pages without capabilites --- lib/app/views/app_page.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/app/views/app_page.dart b/lib/app/views/app_page.dart index 8d01f503..6601c519 100755 --- a/lib/app/views/app_page.dart +++ b/lib/app/views/app_page.dart @@ -547,9 +547,11 @@ class _AppPageState extends ConsumerState { )), if (hasManage && !hasDetailsOrKeyActions && + widget.capabilities != null && widget.capabilities?.first != Capability.u2f) - // Add a placeholder for the Manage/Details column, but not for - // the "Security Key" because it does not have any actions/details. + // Add a placeholder for the Manage/Details column. Exceptions are: + // - the "Security Key" because it does not have any actions/details. + // - pages without Capabilities const SizedBox(width: 336), // simulate column if (hasManage && hasDetailsOrKeyActions) _VisibilityListener(