使用IndexedStack存储页面
_body = IndexedStack(
children: <Widget>[
BookHousePage(),
FunctionPage(),
ChatPage(),
MinePage()
],
index: _currentPageIndex,
);
使用IndexedStack存储页面
_body = IndexedStack(
children: <Widget>[
BookHousePage(),
FunctionPage(),
ChatPage(),
MinePage()
],
index: _currentPageIndex,
);
本文标题:flutter tab切换页面防止重置
本文链接:https://www.haomeiwen.com/subject/ztseprtx.html
网友评论