Create a custom @Preview
annotation as a shortcut for both light & dark themes
#201
Labels
enhancement
New feature or request
Apparently, starting from Compose 1.2, it's possible to create a single annotation for previewing multiple configurations of a particular composable instead of duplicating
@Preview
multiple times everywhere.However, as of Jetpack Compose version 1.2 and Android Studio Chipmunk, preview just don't work. Therefore, as soon as previews get fixed, create a single preview annotation and use it for previewing composables. Something like this:
Then, use it like so:
The text was updated successfully, but these errors were encountered: