Should I expect the Compose Desktop Preview to wor...
# amper
d
Should I expect the Compose Desktop Preview to work out-of-the-box with an Amper configuration? I've installed the relevant plugins in the IDE (Latest IntelliJ CE), but no preview... ...is this a bug/missing feature with how Amper manages the Compose dependencies?
i
Thanks for giving Amper a try in the first place. Yes, it should work. I checked it with compose-desktop project from Amper examples. Could you provide more context on your case, please? Do you have Compose Multiplatform IDE Support plugin installed? If so, do you see a gutter icon next to an annotated composable function? Are you using
@Preview
in
jvm
or any other source set?
a
Hello, the @Preview annotation can not be imported (on the demo android project). I had to enable gradle interop, and add
buildFeatures *{*
compose = true
}
Then I had to align compose version with the kotlin compiler version, by using the https://androidx.dev/storage/compose-compiler/repository/ dependency management.