📜  initialRoute 颤振 - Dart 代码示例

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

代码示例1
runApp(
 MaterialApp(
      initialRoute: 'welcome_screen',
      routes: {
        'welcome_screen': (context) => WelcomeScreen(),
        'login_screen': (context) => LoginScreen(),
        'registration_screen': (context) => RegistrationScreen(),
        'chat_screen': (context) => ChatScreen()
      },
    );
);