File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/src/main/java/com/example/nav3recipes/scenes/listdetail Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
2727import androidx.compose.runtime.Composable
2828import androidx.compose.runtime.CompositionLocalProvider
2929import androidx.compose.runtime.compositionLocalOf
30- import androidx.compose.runtime.mutableStateOf
3130import androidx.compose.runtime.remember
3231import androidx.compose.ui.Modifier
3332import androidx.navigation3.runtime.NavEntry
@@ -94,6 +93,11 @@ class ListDetailScene<T : Any>(
9493 }
9594}
9695
96+ /* *
97+ * This `CompositionLocal` can be used by a detail `NavEntry` to decide whether to display
98+ * a back button. Default is `true`. It is set to `false` for a detail `NavEntry` when being
99+ * displayed in a `ListDetailScene`.
100+ */
97101val LocalBackButtonVisibility = compositionLocalOf{ true }
98102
99103@Composable
You can’t perform that action at this time.
0 commit comments