Hi, is <this> documentation up to date? I can't se...
# compose
a
Hi, is this documentation up to date? I can't seem to pass a string to the
navController.navigate()
method
g
There are a lot of constructors of .navigate() method. You have to use this:
Copy code
.navigate(route: String, builder: NavOptionsBuilder.() -> Unit = {})
or just import
Copy code
import androidx.navigation.compose.navigate
and call appropriate .navigate()
🙏 1
i
Feel free to star the existing Android Studio issue regarding not offering the import: https://issuetracker.google.com/172834438
👍 1
a
Copy code
import androidx.navigation.compose.*
will help