📜  如何在 Flutter 中创建意图 - 无论代码示例

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

代码示例1
void main() {
 runApp(MaterialApp(
   home: MyAppHome(), // Becomes the route named '/'.
   routes:  {
     '/a': (BuildContext context) => MyPage(title: 'page A'),
     '/b': (BuildContext context) => MyPage(title: 'page B'),
     '/c': (BuildContext context) => MyPage(title: 'page C'),
   },
 ));
}