Public Composables with PreviewParameter #84
remcomokveld
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The explanation for ComposePreviewPublic is that a composable should not be public if its only purpose is to be a preview.
This rules seems to flag composables that have
@Preview
and a@PreviewParameters
annotation. I'm curious why those composable specifically qualify as something that is only there for preview purposes?I thought the nice thing about
@PreviewParameter
is so that you don't need to have a separate composable that exists just for Preview because you can add previews to "production composables" by defining what states they can have.Beta Was this translation helpful? Give feedback.
All reactions