File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/navigation3/basic Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ import androidx.navigation3.runtime.NavEntry
2525import androidx.navigation3.runtime.entry
2626import androidx.navigation3.runtime.entryProvider
2727import androidx.navigation3.ui.NavDisplay
28+ import com.example.compose.snippets.navigation3.ContentBlue
29+ import com.example.compose.snippets.navigation3.ContentGreen
2830import com.example.compose.snippets.navigation3.savingstate.Home
2931
3032// [START android_compose_navigation3_basic_1]
@@ -103,7 +105,7 @@ fun NavExample() {
103105 entryProvider = { key ->
104106 when (key) {
105107 is Home -> NavEntry (key) {
106- _root_ide_package_ .com.example.compose.snippets.navigation3. ContentGreen (" Welcome to Nav3" ) {
108+ ContentGreen (" Welcome to Nav3" ) {
107109 Button (onClick = {
108110 backStack.add(Product (" 123" ))
109111 }) {
@@ -113,7 +115,7 @@ fun NavExample() {
113115 }
114116
115117 is Product -> NavEntry (key) {
116- _root_ide_package_ .com.example.compose.snippets.navigation3. ContentBlue (" Product ${key.id} " )
118+ ContentBlue (" Product ${key.id} " )
117119 }
118120
119121 else -> NavEntry (Unit ) { Text (" Unknown route" ) }
You can’t perform that action at this time.
0 commit comments