File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/components Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ import kotlinx.coroutines.launch
2929
3030@Composable
3131fun NavigationDrawerExamples () {
32- DismissibleDrawerExample { innerPadding ->
32+ // Add more examples here in future if necessary.
33+
34+ DetailedDrawerExample { innerPadding ->
3335 Box (modifier = Modifier .padding(innerPadding)) {
3436 Text (
3537 " Swipe from left edge or use menu icon to open the dismissible drawer" ,
@@ -40,9 +42,9 @@ fun NavigationDrawerExamples() {
4042}
4143
4244@OptIn(ExperimentalMaterial3Api ::class )
43- // [START android_compose_components_drawerexample ]
45+ // [START android_compose_components_detaileddrawerexample ]
4446@Composable
45- fun DismissibleDrawerExample (
47+ fun DetailedDrawerExample (
4648 content : @Composable (PaddingValues ) -> Unit
4749) {
4850 val drawerState = rememberDrawerState(initialValue = DrawerValue .Closed )
@@ -110,10 +112,10 @@ fun DismissibleDrawerExample(
110112 }
111113 }
112114}
113- // [END android_compose_components_drawerexample ]
115+ // [END android_compose_components_detaileddrawerexample ]
114116
115117@Preview
116118@Composable
117- fun DismissibleDrawerExamplePreview () {
119+ fun DetailedDrawerExamplePreview () {
118120 NavigationDrawerExamples ()
119121}
You can’t perform that action at this time.
0 commit comments