Hello everybody, I'm currently in the process of ...
# multiplatform
s
Hello everybody, I'm currently in the process of building a more complicated layout in Compose Multiplatform using Fleet and am only targeting desktop for the moment. What is the intended way to get a layout inspector to debug e.g. alignment issues? The workaround I'm currently trying is to add an Android build target to be able to use the inspector provided by Android Studio, but is there a better way I'm missing?
d
This remains a significant gap in the Multiplatform framework, unfortunately (see this related YouTrack issue). If you are making a significant effort with the UI of your Desktop App I would still suggest adding an Android target just so you can use Android Studio's Preview capability. I know that sounds like quite a length to go to; but it's worth it to unlock Android Studio's far more developed Preview abilities.
s
Thank you very much for your reply! I'll then move ahead with the Android target for now and hope that Jetbrains invests in better editor functionality soon :)
p
Perhaps worth checking this project, https://github.com/sellmair/compose-hot-reload