Hi Everyone !. Just new to the channel . i am exp...
# compose-desktop
s
Hi Everyone !. Just new to the channel . i am exploring building a desktop app for my firm with compose for desktop . i want to know is it a good idea to do ?. Is compose for desktop stable ? . and please what are its limitations or issues. the app already works on android and i am trying to build a desktop counterpart for it . The app basically deals with databases , internet . and printing . i would like to know your experiences. Thank you very much for your anticipated answers !!
1
l
Compose for desktop is stable enough for most use cases. If you need deeper integration with mouse interactions, you may hit a bit of instability, but there’s always Swing interop if you get blocked. Compose is just a UI library, so for everything else, like DB, HTTP, etc. you can use any of the JVM or Kotlin Multiplatform libraries.
m
The biggest stumbling stone is getting rid of all your Android dependencies that you will probably find in your code if you are coming from Android and haven’t planned in advance to go to the desktop too.
s
Oh @Michael Paus i am maintaining seperate databases for android and my compose desktop. The android app is written with xml and we have no plans to migrate and share code for now. This will be a pure desktop app.
The biggest issue i think i might face is in terms of printing. Not sure i have knowledge on how to use a printer with compose desktop
The app i am trying to build is a point of sales terminal.
m
I haven’t done any printing with Compose desktop yet but I’d have a look at Java Swing printing which should be usable from Compose too.
s
Thank you very much!!
m
In case you want to display a lot of data, like a table from database, then 1. I don't think there is a complete public table implementation yet, and 2. be prepared for performance issues.
s
alright .. thank you very much
There is a SQLDelight library i think might work ... still exploring it though