Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

initialRoute flutter

runApp(
 MaterialApp(
      initialRoute: 'welcome_screen',
      routes: {
        'welcome_screen': (context) => WelcomeScreen(),
        'login_screen': (context) => LoginScreen(),
        'registration_screen': (context) => RegistrationScreen(),
        'chat_screen': (context) => ChatScreen()
      },
    );
);
 
PREVIOUS NEXT
Tagged: #initialRoute #flutter
ADD COMMENT
Topic
Name
1+9 =