Component - Named routes
This Flutter example shows how to use named routes to navigate between two screens. Named routes let you give each screen a simple name, so you can move between them easily without writing the full widget code every time.
This Flutter example shows how to use named routes to navigate between two screens. Named routes let you give each screen a simple name, so you can move between them easily without writing the full widget code every time.
MaterialApp
├── Scaffold (HomeScreen)
│ ├── AppBar
│ └── Center
│ └── ElevatedButton
└── Scaffold (SecondScreen)
├── AppBar
└── Center
└── Text