Skip to content

Commit

Permalink
removed state persist for tabs (problem with text box focus
Browse files Browse the repository at this point in the history
  • Loading branch information
ninest committed Apr 18, 2020
1 parent 7c8b607 commit 7afa819
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/tabbed_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ class TabbedAppState extends State<TabbedApp> {
body: Stack(
children: <Widget>[
Align(
alignment: Alignment.topCenter,
child:
// use below to not save state between tab state
_tabViews[_selectedIndex]
alignment: Alignment.topCenter,
child:
// use below to not save state between tab state
_tabViews[_selectedIndex],

// use below to save state between tab switch
// IndexedStack(
// index: _selectedIndex,
// children: _tabViews,
// ),
),
// use below to save state between tab switch
// IndexedStack(
// index: _selectedIndex,
// children: _tabViews,
// ),
),
Align(
alignment: Alignment.bottomCenter,
child: BottomNavigationBar(
Expand Down

0 comments on commit 7afa819

Please sign in to comment.