首页 > 解决方案 > 使用 GetX 状态管理颤振导航到上一个屏幕,其中包含来自 api 的更新数据

问题描述

当我在更新后从更新屏幕导航回来时,我可以获取更新的数据。

Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text("General Detail",style: TextStyle(fontFamily: 'Roboto',fontSize: 16.0,fontWeight: FontWeight.w600),), IconButton(onPressed: (){ 获取。 to(()=>UpdateDetailView())!.whenComplete(()=>profileController.fetchProfileDataDetails()); }, 图标: Icon(Icons.edit)) ], ),

标签: flutterdartflutter-dependenciesflutter-getx

解决方案


推荐阅读