How do you pass arguments with pushNamed Flutter?

To use push with a named route, use RouteSettings argument with the route name . Directly inside Page1 pass the User object ( loggedInUser ) to Page2 within a Navigator. push call and use a RouteSettings arg with your route name ( /page2 ). Navigator.

Sizin İçin Seçtik  What is nested navigation in Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *