我目前有路线
Navigator.pop(context,"/second");
Run Code Online (Sandbox Code Playgroud)
但是,我需要通过论证contact。arguments:我知道这对于for来说效果很好popAndPushNamed,但我不知道如何为pop/popUntiletc做到这一点。
Contact contact = ModalRoute.of(context).settings.arguments;
Run Code Online (Sandbox Code Playgroud)
代码位于编辑页面上。在 上onPress,它返回到显示更新的文档字段的上一页。