一、前期准备
1、官方的教程网址
https://developer.android.google.cn/develop/ui/compose/navigation?hl=zh-cn#retrieving-complex-data
2、kotlin中String相关的属性以及方法官方网址
3、根据官方网址提供的内容来看,一共有两种传递参数的方式,
一个是传递必须选择的参数,一种是传递可选参数
必选参数类似这样的:
NavHost(startDestination = "profile/{userId}") {
...
composable(
"profile/{userId}",
arguments