Skip to content

Commit

Permalink
Excluding focus from invisible tab components. #48
Browse files Browse the repository at this point in the history
  • Loading branch information
caduandrade committed Aug 12, 2024
1 parent 2725d62 commit af47742
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/content_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class ContentArea extends StatelessWidget {
} else {
child = tab.content;
}

if (child != null) {
child = ExcludeFocus(excluding: !selectedTab, child: child);
}
if (tab.keepAlive) {
child = Offstage(offstage: !selectedTab, child: child);
}
Expand Down

0 comments on commit af47742

Please sign in to comment.