-
-
Notifications
You must be signed in to change notification settings - Fork 380
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 customize route name? #14
Comments
Hey @rebaz94. I'm not sure I understand your question. |
I also think there should be an optional way to name routes via the annotations.
|
Hey @kuhnroyal, can you explain where is that useful?
|
I am think about flutter web and readable URL like route names. |
@Milad-Akarie Yes I know this way, but there should be an option to set custom name. |
@kuhnroyal @rebaz94 until now I didn't consider flutter web as I haven't had the chance to temper with it yet. So thanks for bringing that to my attention. so the idea I have in mind right now is to first make auto-generated route names URL-friendly (kabab cased) by default and also add an optional route name in all route annotations as @kuhnroyal suggested. Thank you both for taking the time to help make auto_route better. |
@rebaz94 @kuhnroyal you can also pass custom names for all route types as follows |
Thanks for this awesome package.
Is there is anyway to customize route name instead of default variable name?
The text was updated successfully, but these errors were encountered: