1、在使用 Navigator.of(context).pop("xxxx"); 方法时,传值过去,xxxx随便传什么内容
Navigator.of(context).pop("xxxx");
2、在跳转到本页面之前的一个页面中
Navigator.push( context, MaterialPageRoute(builder: (context) =>xxpage(),)).then( (data) { //data就等于xxxx getData()方法为重新获取数据方法 getData()});
确定删除《flutter 页面返回时刷新页面》吗
暂无评论
2023-11-13
2023-12-12
2023-12-11