Clear current focus when changing tabs
This commit is contained in:
parent
6093a11c9a
commit
9903a96d96
@ -51,6 +51,7 @@ class _WonderDetailsScreenState extends State<WonderDetailsScreen>
|
||||
|
||||
void _handleTabTapped(int index) {
|
||||
_tabController.index = index;
|
||||
WidgetsBinding.instance.focusManager.primaryFocus?.unfocus();
|
||||
context.go(ScreenPaths.wonderDetails(widget.type, tabIndex: _tabController.index));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user