mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Small fix for horizontal navigation
This commit is contained in:
parent
25304d0a5b
commit
08301b9ad8
1 changed files with 4 additions and 1 deletions
|
|
@ -394,7 +394,10 @@ class HorizontalRailFocus extends WidgetOrderTraversalPolicy {
|
|||
if (index == -1) return false;
|
||||
|
||||
if (direction == TraversalDirection.left) {
|
||||
if (scrollController.hasClients && scrollController.offset <= firstItemWidth * 0.5) {
|
||||
final shouldAllowNavBarFocus =
|
||||
scrollController.hasClients && (scrollController.offset <= firstItemWidth * 0.5) && (index == 0);
|
||||
|
||||
if (shouldAllowNavBarFocus) {
|
||||
lastMainFocus = currentNode;
|
||||
navBarNode.requestFocus();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue