Skip to content

Commit fba0f86

Browse files
committed
Add previews
1 parent a9ee19d commit fba0f86

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ fun SimpleNavigationDrawerExample() {
131131
}
132132
// [END android_compose_components_simplenavigationdrawerexample]
133133

134+
@Preview
135+
@Composable
136+
private fun SimpleNavigationDrawerExamplePreview(){
137+
SimpleNavigationDrawerExample()
138+
}
139+
134140
// [START android_compose_components_nestednavigationdrawerexample]
135141
@Composable
136142
fun NestedNavigationDrawerExample() {
@@ -182,3 +188,8 @@ fun NestedNavigationDrawerExample() {
182188
}
183189
// [END android_compose_components_nestednavigationdrawerexample]
184190

191+
@Preview
192+
@Composable
193+
private fun NestedNavigationDrawerExamplePreview(){
194+
NestedNavigationDrawerExample()
195+
}

0 commit comments

Comments
 (0)