Student Reviews
( 5 Of 5 )
1 review
Video of 41- Flutter Pass arguments to a named route (Arabic) in Flutter course by Code2Start - Mohamed Fathy Taha channel, video No. 41 free certified online
The Navigator provides the ability to navigate to a named route from any part of an app using a common identifier. In some cases, you might also need to pass arguments to a named route. For example, you might wish to navigate to the /user route and pass information about the user to that route.
You can accomplish this task using the arguments parameter of the Navigator.pushNamed() method. Extract the arguments using the ModalRoute.of() method or inside an onGenerateRoute() function provided to the MaterialApp or CupertinoApp constructor.