Feature request: support for device
parameter and others of Compose @PreviewΒ #388
Open
Description
seems Showkase not take screenshots depending on the configuration of @Preview parameter, such as device
, widthDp
, heightDp
.
currently I see if having a @Preview function set as
@Preview(device = Devices.PHONE)
@Preview(device = Devices.TABLET)
@Composable
internal fun PreviewBookCreditContent() {
...
}
the generated ShowKaseBrowserComponent looks like below
public val PreviewBookCreditContentDefaultGroupPreviewBookCreditContent: ShowkaseBrowserComponent =
ShowkaseBrowserComponent(
group = "Default Group",
componentName = "PreviewBookCreditContent",
componentKDoc = "",
componentKey =
"""...credit_PreviewBookCreditContent_null_DefaultGroup_PreviewBookCreditContent_0_null""",
isDefaultStyle = false,
component = @Composable { PreviewBookCreditContent() }
)
not read device
parameter, also not take screenshots depending on its configuration.
p.s.
also if ShowKase adds support for new compose @Preview annotations such as @PreviewScreenSizes
, @PreviewFontScale
, would be much more helpful.
Metadata
Assignees
Labels
No labels