Closed ofalvai closed 2 years ago
Hmm I'll have to take a look at this. KSP is brand new so its possible that some logic could've unintentionally changed 🤔
Also, I need to update some documentation that talks about how Showkase can be added only to the debug builds. I'll do it soon!
Can confirm, I'm seeing the same tiny white squares on beta 10 with kapt as well. Specifying widthDp
and heightDp
in the @Preview
fixes the rendering but is not scalable.
I have a fix up for it!
When I'm using the
@Preview
annotation from Compose, my composables are rendered as tiny squares. They are rendered correctly when I switch to@ShowkaseComposable
, but I want to restrict Showkase dependencies todebugImplementation
only, so I don't want to import@ShowkaseComposable
in any production files.Looking at the generated code of one
@Preview
annotated and one@ShowkaseComposable
annotated function, the only difference is thewidth
andheight
parameters:Note: I'm using KSP instead of KAPT for code generation.