PersonView

person

person

If you have a small Flutter app without complex linking,
use Navigator with named routes.
After defining your navigation routes,
call your navigation routes using their names.

Name each route in the class passed to the runApp() function.
The following example uses App:

    
 
   
     Test in DartPad
   
   
     View on GitHub
   
 
 

    
 // Defines the route name as a constant
 // so that it's reusable.
 const detailsPageRouteName = '/details';

 class App extends StatelessWidget {
   const App({
     super.key,
   });