可以通过将PageView中的子控件继承AutomaticKeepAliveClientMixin(仅限于StatefulWidget)达到目的,同时重写的build方法必须调用super.build()进行状态存储。