📜  通过屏幕更改颤动传递数据 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:30.143000             🧑  作者: Mango

代码示例1
//Screen A
Navigator.pushReplacementNamed(context, "/screenb", arguments: {
      'name': your_data,
    });

//Screen B
Map data = {};
data = ModalRoute.of(context)!.settings.arguments as Map;