From 7afa819dd23854c0816c3c590c920f79389d4d04 Mon Sep 17 00:00:00 2001 From: themindstorm Date: Sat, 18 Apr 2020 15:37:01 +0800 Subject: [PATCH] removed state persist for tabs (problem with text box focus --- lib/tabbed_app.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/tabbed_app.dart b/lib/tabbed_app.dart index 21d2289..201da01 100644 --- a/lib/tabbed_app.dart +++ b/lib/tabbed_app.dart @@ -35,17 +35,17 @@ class TabbedAppState extends State { body: Stack( children: [ 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(