-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass data thought routes? Like an ID... #3
Comments
You can easily pass data between named routes using arguments. The implementation of named URL segments ": articleID" is nice, but for now not possible due to Dart limitations, version 2.6 will bring extensions, which is a kickoff for this to be possible. However, you can be sure that as soon as you can create this, I will. While this is not possible, you can do the following: Get.toNamed('/profile', arguments: {"user_id:"1"}) on Router class: GetRoute(settings: settings, builder: (_) => Profile(data: settings.arguments)); on Profile class: |
Like:
Get.toNamed("/article/:articleID");
The text was updated successfully, but these errors were encountered: