https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-desktop
  • j

    John O'Reilly

    12/10/2021, 10:59 AM
    Is there a dev/eap etc version of Compose for Desktop that works with Kotlin 1.6.x?
    m
    • 2
    • 2
  • a

    Ali Albaali

    12/10/2021, 5:09 PM
    What's the best way to create a nested DropdownMenu?
    d
    h
    • 3
    • 4
  • s

    spierce7

    12/10/2021, 7:23 PM
    Benchmarks that I’ve seen show massive performance improvements for compose on Android with R8 turned on, which is apparently due to R8 optimizing lambdas. I’m curious if proguard offers the same optimizations that are so valuable on android, so that we can get them on desktop.
    👀 2
    j
    m
    • 3
    • 4
  • s

    smallshen

    12/11/2021, 8:04 AM
    Does anyone have same problem like this?
    java.lang.IllegalStateException: Unhandled declaration! IrScriptImpl
    When tries to run a compose application inside a kotlin script
    o
    • 2
    • 1
  • l

    luen

    12/11/2021, 1:13 PM
    How do I catch mouse events outside of the widget?
    d
    k
    r
    • 4
    • 4
  • d

    d.medina

    12/11/2021, 7:22 PM
    I want to save the content of a canvis as an image on my hard drive
    k
    • 2
    • 4
  • a

    Ali Albaali

    12/11/2021, 8:05 PM
    What's the best way to display different items in
    LazyColum
    ? Let's say, I have
    Item1
    and
    Item2
    , I want to display one
    Item2
    after every 5 items of
    Item1
    . My initial thought, is to make them inherit a single interface and handle them based on index. But is there any other way?
    m
    r
    • 3
    • 3
  • s

    spierce7

    12/11/2021, 8:13 PM
    Do saveables have a use on desktop?
    d
    z
    • 3
    • 3
  • d

    Dirk Hoffmann

    12/12/2021, 1:35 AM
    how can I get the Monitor(s)'s screen size?
    k
    • 2
    • 1
  • a

    Ayfri

    12/12/2021, 3:53 PM
    Hi, is there a way to observe a MutableState value ? Like executing a code when the value is changed
    s
    a
    h
    • 4
    • 15
  • c

    Colton Idle

    12/13/2021, 4:26 PM
    Curious if anyone knows how to modify an android compose lib to support jb compose. If so, maybe someone can help on https://github.com/chrisbanes/snapper/issues/5
    c
    • 2
    • 2
  • s

    smallshen

    12/13/2021, 4:32 PM
    For this issue https://github.com/oracle/graal/issues/4113 Here is a poc that compose applications can be compiled to native with graalvm
    Launcher-0.0.3-optimized.exe
    m
    • 2
    • 4
  • s

    SrSouza

    12/13/2021, 5:22 PM
    Hi folks, I do have a library for Compose Multiplatform that I want to support both Android (Jetpack Compose) and Multiplatform (Jetbrains Compose). I'm having doubt about using the Jetbrains Compose plugin to for publishing for both type of projects, I read in this channel that Jetbrains Compose 1.0 is not using Google's Compose Stable release (1.0) instead is using the Beta version from 1.1. I want to know if anyone call tell if publishing for both using the Jetbrains plugin could have issues for people that is using Google Compose stable version (1.0).
    b
    a
    • 3
    • 2
  • h

    hfhbd

    12/14/2021, 9:18 AM
    Any chance we get a 1.6.10 compatible release today? Wait, 1.0.1-rc1 supports 1.6.10-RC 🎉
    :plus1: 1
    l
    a
    • 3
    • 3
  • r

    rsktash

    12/14/2021, 2:16 PM
    👀 1
    c
    g
    d
    • 4
    • 6
  • m

    Michał Kalinowski

    12/15/2021, 10:55 AM
    Hey, is there any roadmap of what is planned for the future with compose-dekstop?
    👀 4
    a
    s
    +3
    • 6
    • 16
  • t

    Thomas

    12/15/2021, 12:15 PM
    Is there a way to build a universal pkg (Intel + ARM64) for Mac? That is needed to be able to upload it to the Apple AppStore.
    👀 1
    a
    j
    a
    • 4
    • 17
  • d

    Dragos Rachieru

    12/15/2021, 3:34 PM
    Hello, I am trying to use
    rememberSaveable
    on Desktop and Android, I have a sealed class that doesn't extend
    Serializable
    or
    Parcelable
    , the code works fine on Desktop, but does not work on Android. How can I handle this? I was thinking of creating a custom saver for that, but serialization does not work with compose in the same module, so I'm trying to avoid that for now.
    z
    • 2
    • 4
  • s

    simon ballantyne

    12/15/2021, 4:59 PM
    Sorry to ask a bone question, Im building a test application where we are deploying a control application, which can start and stop various components. We want to package these components in resources/common and be able to deploy them to the installdir/app/resources any tips if we can do this via the Gradle script?
    r
    a
    • 3
    • 6
  • c

    Colton Idle

    12/16/2021, 8:18 AM
    Which version of compose desktop should I be using now. My IDE tells me that
    classpath("org.jetbrains.compose:compose-gradle-plugin:1.1.0-alpha1-dev527")
    is available and is the latest, but I see on the github releases page that 1.0,1-rc2 with kotlin 1.6.10 support is available.
    j
    a
    • 3
    • 2
  • r

    Roshad Guerrier

    12/16/2021, 10:12 PM
    I want to change the icon for for my compose-desktop app but according to the readme I need to change the icon in the build.gradle file. Is it referring to the build.gradle.kts file?
    :yes: 1
    k
    • 2
    • 5
  • r

    Roshad Guerrier

    12/16/2021, 10:14 PM
    also the build.gradle hyperlink leads to a 404 Github page
    :thread-please: 2
    c
    a
    t
    • 4
    • 4
  • s

    simon ballantyne

    12/17/2021, 1:53 PM
    Anyone know if its possible to integrate Java FX components with Composables? Im trying to find a interactive map component to display locations. Nasa World Wind is waay out of date (although I can get it to load as a composable) and arcgis is JavaFx based, any ideas?
    d
    • 2
    • 4
  • a

    Ayfri

    12/17/2021, 2:39 PM
    Hi, is there any library or a way to use Kotlinx Serialization with a serializer that converts the MutableStates to their values (same with lists/maps) ?
    d
    • 2
    • 7
  • d

    David W

    12/18/2021, 7:22 AM
    Is there any component for displaying a list of timed, stacked notifications, such as MacOS's toasts or Windows's notifications? edit: I made one, see inside.
    • 1
    • 3
  • c

    Christian Babsek

    12/18/2021, 3:53 PM
    Is there currently a problem with the Skija Image Converter? I tried to show PNG images, given as ByteArray. Whenever I save that ByteArray into a file, everything works and the given code also worked some months ago with an older version of compose: Everytime I run the code
    @Composable
    fun ByteArrayImage(
        image: ByteArray,
        contentScale: ContentScale = ContentScale.Fit,
        modifier: Modifier = Modifier
    ) {
        val bitmap by derivedStateOf { SkiaImage.makeFromEncoded(image).toComposeImageBitmap() }
        Image(
            bitmap = bitmap,
            contentDescription = null,
            contentScale = contentScale,
            modifier = modifier.fillMaxSize()
        )
    }
    It results in
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Failed to Image::makeFromEncoded
    	at org.jetbrains.skia.Image$Companion.makeFromEncoded(Image.kt:139)
    	at de.babsek.condocs.desktop.composelib.ByteArrayImageKt$ByteArrayImage$bitmap$2.invoke(ByteArrayImage.kt:19)
    	at de.babsek.condocs.desktop.composelib.ByteArrayImageKt$ByteArrayImage$bitmap$2.invoke(ByteArrayImage.kt:19)
    	at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:1798)
    	at androidx.compose.runtime.DerivedSnapshotState.currentRecord(DerivedState.kt:117)
    	at androidx.compose.runtime.DerivedSnapshotState.getDependencies(DerivedState.kt:172)
    	at androidx.compose.runtime.CompositionImpl.recordReadOf(Composition.kt:587)
    	at androidx.compose.runtime.Recomposer$readObserverOf$1.invoke(Recomposer.kt:792)
    	at androidx.compose.runtime.Recomposer$readObserverOf$1.invoke(Recomposer.kt:792)
    	at androidx.compose.runtime.DerivedSnapshotState.getValue(DerivedState.kt:160)
    Any ideas? Thank you very much in advance 🙂
    k
    • 2
    • 5
  • w

    Waqas Tahir

    12/18/2021, 4:31 PM
    does anyone know how to solve this ?
    s
    • 2
    • 6
  • a

    Antonio Cardona

    12/20/2021, 1:51 PM
    Hello to all the mates here! Learning to Compose for Desktop, and has been very enjoyable.
    👍 2
    h
    e
    • 3
    • 23
  • d

    David W

    12/21/2021, 12:40 AM
    The height of Box is 0 and I'm not sure why.
    Row(modifier) {
            Box(
                modifier = Modifier
                    .width(24.dp)
                    .fillMaxHeight()
                    .background(color = Color.Blue)
            )
            Text(modifier = Modifier.align(Alignment.CenterVertically), text = "Theme")
        }
    c
    • 2
    • 9
  • s

    sonder-joker

    12/21/2021, 7:30 AM
    I wish to create a hook that trigger when the entire windows is loaded. Any tips?
    • 1
    • 1
Powered by Linen
Title
s

sonder-joker

12/21/2021, 7:30 AM
I wish to create a hook that trigger when the entire windows is loaded. Any tips?
I have add a issue about ithttps://github.com/JetBrains/compose-jb/issues/1626
View count: 3