Skip to content

Commit cd1b543

Browse files
committed
Renaming functions
1 parent 1f7b793 commit cd1b543

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/components/NavigationDrawer.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ import kotlinx.coroutines.launch
2929

3030
@Composable
3131
fun 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
}

0 commit comments

Comments
 (0)