防止flutter tab 页面重新绘制
1.添加 with AutomaticKeepAliveClientMixin{
class _OneState extends State<One> with AutomaticKeepAliveClientMixin{
- 重写方法 return true
//避免页面重新绘制
@override
bool get wantKeepAlive => true;
3.继承super build ----->super.build(context);
@override
Widget build(BuildContext context) {
super.build(context);
return Scaffold(
backgroundColor: Colors.white,
body: Column(