Created
February 3, 2025 09:57
-
-
Save Sottti/d9933f0d7919b1c9996a2e76b7408019 to your computer and use it in GitHub Desktop.
One of the trickiest cases to write previews
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
@Preview( | |
group = "Light Theme - All Rounded Surface", | |
uiMode = Configuration.UI_MODE_NIGHT_NO, | |
) | |
@Preview( | |
group = "Dark Theme - All Rounded Surface", | |
uiMode = Configuration.UI_MODE_NIGHT_YES, | |
) | |
internal fun ListItemAllRoundedSurfacePreview( | |
@PreviewParameter(ListItemAllRoundedSurfaceContentProvider::class) | |
viewState: ListItemPreviewViewState, | |
) { | |
ListItemPreviewWithWrapper(viewState) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment