Hello, when I tried to use Scaffold, I have gotten...
# compose
e
Hello, when I tried to use Scaffold, I have gotten this error message, I can’t understand why.
j
NavHost does not give you a Composable context (you need to define a graph with the
composable("route") { ... }
Function Also, you should move your navhost inside the contents of the scaffold
k
have you tried wrapping your scaffold inside
Copy code
composable("home") {}
e
After moving g the navhost inside the contents of scaffold, everything work as excepted thanks
s
That said, it would be nice to get that “could not render error message” error fixed, too. 😅