📅  最后修改于: 2022-03-11 14:58:30.143000             🧑  作者: Mango
//Screen A
Navigator.pushReplacementNamed(context, "/screenb", arguments: {
'name': your_data,
});
//Screen B
Map data = {};
data = ModalRoute.of(context)!.settings.arguments as Map;