2020年9月15日

Flutter——切换页面,如何保持当前页的状态

摘要: 主要三步: 1、state方法中混入with AutomaticKeepAliveClientMixin 2、继续在state方法中的build方法中添加super.build(context); 3、继续添加 1 @override 2 // TODO: implement wantKeepAli 阅读全文

posted @ 2020-09-15 18:24 在一起的浅蓝色 阅读(825) 评论(0) 推荐(0)

导航