Compose for Desktop is modern toolkit for building native declarative UI made by JetBrains. It's based on Google's Jetpack Compose
Questions tagged [compose-desktop]
147 questions
5
votes
1 answer
Draw Text within DrawScope - Jetpack Compose Desktop
I want to draw Text inside a canvas to display a label for a chart.
On Android, I can use the library: https://github.com/tehras/charts (For Compose: 1-alpha03)
but on Desktop I can't.
Thus I tried to rewrite the broken parts.
But I can't get the…

2jan222
- 1,732
- 2
- 16
- 29
4
votes
3 answers
Understanding Compose declarative logic
I'm new with Compose and declarative programming, and I'm trying to understand it. For learning, after reading tutorials and watching courses, now I'm creating my first app.
I'm creating a compose desktop application with compose multiplatform which…

NullPointerException
- 36,107
- 79
- 222
- 382
4
votes
1 answer
Compose Desktop: How to Access Extended Material Icon Set?
I am making an app using Compose for Desktop. I am trying to include a simple file download Icon that I know is included in the lengthy set of Material Icons, however it is not available under Icons.Filled. Some of the icons included, in my opinion,…

jbdev
- 373
- 2
- 15
4
votes
1 answer
Unresolved reference: ExposedDropdownMenuBox in Compose for Desktop
I need to implement a drop down menu for Windows App which is based on Compose for Desktop
For that I am trying to use ExposedDropdownMenuBox
But I am getting error:
Unresolved reference: ExposedDropdownMenuBox
Following is the…

SVK
- 676
- 1
- 5
- 17
4
votes
2 answers
How do I wrap text around an image or a composable?
How do I wrap text around an image or a composable?
Something similar to FlowTextView in Jetpack Compose.
I am wondering if there is a possibility to leave a certain space free so that if the text is too long it breaks a line and writing continues…

Zen1000
- 147
- 9
4
votes
3 answers
How to create an editor in Jetpack Compose?
Jetpack compose provides lots of material components like TextField etc. However, to build something like a file editor, what kind of component can be used that supports multiple lines of text any long with text operations like selecting text,…

SaiNageswar S
- 1,203
- 13
- 22
3
votes
1 answer
How can I make two windows on jetpack compose desktop and going from window to another?
How can I make two windows on jetpack compose desktop and going from window to another when I click button for example?
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "Products Manager",
…

Mohamed Ahmed Saleh
- 31
- 3
3
votes
2 answers
Unable to bring window to foreground with compose desktop
With the following code the application window can be hidden using the button and restored using a global shortcut ALT+S.
Now I would like to also use the shortcut to bring the window to the foreground (if it wasn't hidden).
Find below my failed…

FRB
- 123
- 2
- 8
3
votes
1 answer
Obfuscation for Compose Desktop application. Probably with ProGuard
Our main task is to make a GUI application on Windows (and preferably on Mac too) so it would be impossible/extremely difficult to find out the source code (Kotlin). Question is = how to do it?
Ideally, I would like to know:
.1. Tools to get the…

Nikita Avramenko
- 73
- 6
3
votes
1 answer
Compose Desktop testing - how to check if something is visible?
Given some simple content:
@Composable
fun MyContent() {
var showThing by remember { mutableStateOf(false) }
if (showThing) {
Box(Modifier.testTag("thing")) {
Text("The Thing")
}
}
}
If I try to test whether…

Hakanai
- 12,010
- 10
- 62
- 132
3
votes
0 answers
How to read an sqllite database file in a Jetpack Compose Desktop project configured for SQLDelight?
I'm trying to read a pre-built sqllite database in jetpack compose desktop project which is configured for SQLDelight. All I could find on the internet is the Android version of the compose. I tried putting the database file in the resources folder,…
user17902926
3
votes
1 answer
Jetpack compose for desktop: run application in background?
i am new to the jetpack compose. I did a lot of research on that topic but i can't find anything useful. What i wanna achieve is that if I close my window, my application will stay in the background and can be opened again from the tray. I managed…

TechWiki
- 157
- 10
3
votes
2 answers
Jetpack Compose Desktop – MaterialTheme.colors.background Not Working
Setting MaterialTheme.colors
I'm trying to make a very basic window in Jetpack Compose for Desktop (not mobile), but I'm having some difficulties with changing the colors of the window. I've looked at some tutorials and examples, but maybe I don't…

Zoltan Zarlow
- 97
- 1
- 8
3
votes
2 answers
How to trigger PC Keyboard inputs in Kotlin Desktop Compose
I am going to develop a POS system using Kotlin Jetpack Compose and I wanna know how to trigger keyboard input events inside my project.

Prasa Dev
- 93
- 9
3
votes
0 answers
Android Studio 2020.3.1 Canary 5 problems: "lateinit property variantName" and more
I have am running Canary Android Studio on both a desktop and laptop, working with Compose.
The since moving to Canary 5 I have problems on both, both were fine on Canary 4.
On the Desktop, build of even the automatic compose empty activity project…

innov8
- 2,093
- 2
- 24
- 31