Skip to content
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

RouteAction for BottomSheet with argument #22

Closed
hidayat05 opened this issue Mar 15, 2022 · 1 comment
Closed

RouteAction for BottomSheet with argument #22

hidayat05 opened this issue Mar 15, 2022 · 1 comment

Comments

@hidayat05
Copy link

sample generated RouteActions

object RoutesActions {
  /**
   * Builds an action to "transaction_status" route
   */
  fun toTransaction_status(status: String): String = "transaction_status/$status"  --> should transaction_status?status={status}
  
}

there should be a differentiator for Route bottomsheet.
Thanks.

@levinzonr
Copy link
Owner

Hey @hidayat05 !
If I understood correctly, you want to use optional argument in you route action
To do that you need to specify it inside the annotation like so

@Route(
 name = "route",
args = [RouteArg("id", isOptional = true, defaultValue = "default_id"
)

If that's not what you are asking, can you clarify a bit more and show how did you setup your navigation :)
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants