spierce7
01/25/2023, 11:39 PMArjan van Wieringen
01/26/2023, 5:34 AMAdam Brown
01/26/2023, 6:40 AMSebastian Kürten
01/26/2023, 9:11 AMfun main()
for each UI component that requires a preview and we have created a little preview()
helper method which launches a standalone preview window. The method accepts a bunch of parameters that can be modified in the upper part of the preview windows. It let's you see your component under varying circumstances. What's also nice about this is that you can also try out interaction with the component. It's not something that's a full-blown library at this point, so you'd need to craft something similar for your own codebase. Here's an example from our project:Sebastian Kürten
01/26/2023, 9:16 AMArkadii Ivanov
01/26/2023, 12:49 PMandroidx.compose.desktop.ui.tooling.preview
. I'm using it in my samples for some time - https://github.com/arkivanov/Decompose/blob/master/sample/shared/compose/src/commonMain/kotlin/androidx/compose/desktop/ui/tooling/preview/Preview.kt
The only issue with this approach is https://youtrack.jetbrains.com/issue/KTIJ-24082/Arjan van Wieringen
01/27/2023, 9:21 AMArkadii Ivanov
01/27/2023, 9:55 AMAdam Brown
01/29/2023, 1:28 AM