Jetpack Compose中使用Navigation导航的两种方式 这里介绍两种方式 直接从屏幕导航 使用 ViewModel 导航 直接从Screen导航 设置 添加依赖项 dependencies { def lifecycle_version = "2.6.0-alpha03" // Pass the ViewModel directly to the screen implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$li