flutter tab切换页面防止重置
2022-05-25 本文已影响0人
欧小肥OuO
使用IndexedStack存储页面
_body = IndexedStack(
children: <Widget>[
BookHousePage(),
FunctionPage(),
ChatPage(),
MinePage()
],
index: _currentPageIndex,
);
使用IndexedStack存储页面
_body = IndexedStack(
children: <Widget>[
BookHousePage(),
FunctionPage(),
ChatPage(),
MinePage()
],
index: _currentPageIndex,
);