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
25
25
import androidx.navigation3.runtime.entry
26
26
import androidx.navigation3.runtime.entryProvider
27
27
import androidx.navigation3.ui.NavDisplay
28
+ import com.example.compose.snippets.navigation3.ContentBlue
29
+ import com.example.compose.snippets.navigation3.ContentGreen
28
30
import com.example.compose.snippets.navigation3.savingstate.Home
29
31
30
32
// [START android_compose_navigation3_basic_1]
@@ -103,7 +105,7 @@ fun NavExample() {
103
105
entryProvider = { key ->
104
106
when (key) {
105
107
is Home -> NavEntry (key) {
106
- _root_ide_package_ .com.example.compose.snippets.navigation3. ContentGreen (" Welcome to Nav3" ) {
108
+ ContentGreen (" Welcome to Nav3" ) {
107
109
Button (onClick = {
108
110
backStack.add(Product (" 123" ))
109
111
}) {
@@ -113,7 +115,7 @@ fun NavExample() {
113
115
}
114
116
115
117
is Product -> NavEntry (key) {
116
- _root_ide_package_ .com.example.compose.snippets.navigation3. ContentBlue (" Product ${key.id} " )
118
+ ContentBlue (" Product ${key.id} " )
117
119
}
118
120
119
121
else -> NavEntry (Unit ) { Text (" Unknown route" ) }
You can’t perform that action at this time.
0 commit comments