https://developer.android.com/jetpack/compose/navigation#optional-args
一直在查看文档以了解如何使用多个可选参数以及如何传递它们
但在文档中只提到了一个参数。
composable(
"profile?userId={userId}",
arguments = listOf(navArgument("userId") { defaultValue = "me" })
)
Run Code Online (Sandbox Code Playgroud)
并调用它
composable("profile")
composable("profile/user123") // if you want to pass param
Run Code Online (Sandbox Code Playgroud)
如何声明和调用两个参数?