fix: bounds-safe action bar focus node access

This commit is contained in:
edde746
2026-04-13 22:00:36 +02:00
parent b81f6eaa96
commit 2126a38f39
5 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -821,7 +821,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
i,
onSelectWhenActive: _focusCurrentTab,
onNavigateDown: _focusCurrentTabFromTabBar,
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
onNavigateRightFromLast: () => _actionBarKey.currentState?.requestFocusOnFirst(),
),
],
],
@@ -965,7 +965,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
i,
onSelectWhenActive: _focusCurrentTab,
onNavigateDown: _focusCurrentTabFromTabBar,
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
onNavigateRightFromLast: () => _actionBarKey.currentState?.requestFocusOnFirst(),
),
],
],