In our project, we are experiencing the following problem. Does this Issue point out something similar?
// These are annotated with @Preview.
@DeviceWidthPreviews
@ThemePreviews
annotation class ComponentPreviews
// "TestPreview" is a preview function, but Lint says "There is no modifier".
@ComponentPreviews
@Composable
private fun TestPreview() {
Text(text = "Hello, World!")
}
I think this is because isPreview only checks if the function's annotation has @Preview attached to it.
In our project, we are experiencing the following problem. Does this Issue point out something similar?
I think this is because isPreview only checks if the function's annotation has
@Preview
attached to it.