I’ve the Compose plugin installed in my intelliJ, ...
# compose-desktop
t
I’ve the Compose plugin installed in my intelliJ, but
@Preview
doesn’t show the ▶️ icon ? 🤔 What am i missing?
1
IDE version 👇
Copy code
IntelliJ IDEA 2021.2.4 (Community Edition)
Build #IC-212.5712.43, built on December 21, 2021
Runtime version: 11.0.13+8-b1504.49 x86_64
Non-Bundled Plugins: wu.seal.tool.jsontokotlin (3.7.2), org.jetbrains.kotlin (212-1.6.10-release-923-IJ5457.46), org.jetbrains.compose.desktop.ide (1.0.0), com.github.developerutils.kotlin-function-arguments-helper (2021.3.0), siosio.kodkod (2.0.4)
Kotlin: 212-1.6.10-release-923-IJ5457.46
d
it doesn't tell you anywhere in IntelliJ, but preview only works if the method has no parameters
✔️ 1
💡 1
t
Ohh yes.. my bad 🤦‍♂️ thanks
d
so the idea is you make a separate method for preview and feed it mock data
🙏 1
👍 1
t
works well 👍
👍🏻 1