Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigate between screens with Compose: Android Basics with Compose #114

Open
DAMSanti opened this issue Nov 7, 2024 · 0 comments
Open

Comments

@DAMSanti
Copy link

DAMSanti commented Nov 7, 2024

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-navigation?hl=es_419#6

In which task and step of the codelab can this issue be found?
Convierte el título actual de la pantalla en un valor de CupcakeScreen. Debajo de la variable backStackEntry crea una variable utilizando val llamada currentScreen igual al resultado de llamar la función de clase valueOf() de CupcakeScreen, y pasa la ruta del destino de backStackEntry. Usa el operador elvis para proporcionar un valor predeterminado de CupcakeScreen.Start.name.

Describe the problem

This
backStackEntry?.destination?.route ?: CupcakeScreen.Start.name
should be replaced by this
backStackEntry.value?.destination?.route ?: CupcakeScreen.Start.name

Steps to reproduce?
3. See error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant