https://kotlinlang.org logo
Docs
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
  • m

    Mario Javier Medina Cocom

    04/06/2022, 4:10 PM
    Does anyone know if there is any datepicker for compose desktop? thanks in advance!
    m
    2 replies · 2 participants
  • r

    Ryan Mitchener

    04/07/2022, 1:48 PM
    Does anyone know if there is a way to customize the look of the context menu in the
    SelectionContainer
    composable? I would like all of the menus/popups in my app to have a consistent style but I can’t find a way to change how they look.
    i
    2 replies · 2 participants
  • d

    Dragos Rachieru

    04/07/2022, 2:07 PM
    I remember somebody asking about an Image loading library and the suggestion was to use kamel This library looks like is no longer maintained, are there any alternatives? I need to use an Image loading library that works on Android, Desktop and Web
    d
    1 reply · 2 participants
  • d

    Dragos Rachieru

    04/08/2022, 7:37 AM
    Hello, I was trying to use the back handling on both android and desktop, I think the
    BackHandler
    should be ported to
    desktop
    and
    web
    as well as we can use the buttons to go back (I use mouse buttons to navigate on desktop). I was writing a multiplatform navigation component and it needs multiplatform
    BackHandler
    , I have an expect/actual for that, but it would be great for it to be part of the
    compose
    library
    h
    k
    +2
    8 replies · 5 participants
  • s

    S.

    04/09/2022, 7:41 PM
    is there any way to disable the 'draggability' of a
    WindowDraggableArea
    ? I wan't to disable it when the window is maximized
    k
    4 replies · 2 participants
  • k

    Kirill Grouchnikov

    04/10/2022, 2:49 AM
    Just published a deeper dive into the shader-based render effects in Compose Desktop / Skiko, looking at each step one at a time and detailing all the moving parts.
    🙌🏻 1
    💙 3
    🙌 8
    :jetpack-compose: 4
    😮 3
    🙌🏼 1
    r
    10 replies · 2 participants
  • n

    Norbi

    04/11/2022, 6:18 AM
    Is there a way to make the Compose/Desktop theme or look&feel more desktop-like? 🙂 Material Design is not optimal for desktop applications with its huge UI elements (designed for touch-screens). I've found this: https://github.com/ButterCam/compose-jetbrains-theme Has anyone used it maybe? Is it stable enough to start experiencing with it? Thanks.
    d
    s
    +1
    6 replies · 4 participants
  • p

    Partho Paul

    04/11/2022, 12:38 PM
    Hi all, is there any alternative for http://google.github.io/accompanist/pager? I'm working on a front-end project using compose-web and the project is web-browser specific (it'll not be used in android or iOS), so I'm trying to avoid android dependencies.
    m
    2 replies · 2 participants
  • y

    ynsok

    04/12/2022, 8:51 AM
    Hi, I’m developing an application targeting desktop and android using compose multiplatform. I’ve started facing problems with android process death because all my states are lost for obvious reasons. I’ve checked that for android there is used SavedStateHandle to cover this case. But In my situation, I can’t use it because I need a multiplatform solution. Any idea how to solve this problem?
    b
    g
    +3
    13 replies · 6 participants
  • s

    S.

    04/12/2022, 1:47 PM
    I encountered what seems like a bug when using transparent dialog windows. I have a typical 'are you sure you want to quit' modal when attempting to close the application. this is done via a transparent dialog which then has a box with
    Modifier.fillMaxSize().background(Color.Black.copy(alpha = 0.5f))
    When the parent window is floating, I get the expected result but whenever it's maximized the box is just plain black opposed to being transparent. However every time I create a transparent window I get
    Failed to create DirectX12 device.
    I assume this is the root of all evil or could it be caused by something else?
    i
    4 replies · 2 participants
  • j

    Jan

    04/12/2022, 6:17 PM
    Hey I'm creating a "game" or more like a simulation following the example of the Falling Balls Game on github. But my game is kinda "lagging" and it's also fps dependent. The example covers that (I think) but I don't think I'm implementing it right. Currently I have: (thread)
    l
    17 replies · 2 participants
  • p

    ppvi

    04/12/2022, 8:17 PM
    All my dialogs on linux look like this. Using awt's
    FileDialog
    for example. I checked out the compose-jb samples and they have the same problem. What could I be missing?
    k
    s
    6 replies · 3 participants
  • s

    spierce7

    04/13/2022, 3:47 PM
    What’s the oldest version of MacOS that Compose Desktop should work with?
    k
    t
    3 replies · 3 participants
  • s

    S.

    04/13/2022, 9:19 PM
    I have a list used in a
    LazyColumn
    and a corresponding add function in the viewmodel but no matter what I try the list does not refresh itself. basically the same code is used for a search feature which works fine. only difference it's not called from a
    onClick
    but from
    onValueChanged
    a
    m
    +1
    14 replies · 4 participants
  • n

    Nathan Retta

    04/14/2022, 2:54 PM
    In general, I've noticed that the Compose community is behind Flutter. I'm curious if there is something similar to https://pub.dev/ for Compose, where component sharing/publishing is encouraged? I would be very happy to see that!
    ➕ 4
    g
    s
    +3
    15 replies · 6 participants
  • s

    spierce7

    04/14/2022, 10:25 PM
    hey - I’m trying to reproduce the mac app behavior that an app stays open after it’s windows are closed, and then when you click on the app icon again, it opens the window back up. I’m pretty sure I can keep the process alive after the window is closed, but how do I get the event that the app icon was clicked so I know when to open the window back up?
    x
    2 replies · 2 participants
  • s

    Scott Martin

    04/15/2022, 7:35 PM
    So it looks like I can have our app intercept URLs on mac by modifying the plist:
    infoPlist {
        extraKeysRawXml = """
        |  <key>CFBundleURLTypes</key>
        |  <array>
        |    <dict>
        |      <key>CFBundleURLName</key>
        |      <string>AdCentral App</string>
        |      <key>CFBundleURLSchemes</key>
        |      <array>
        |        <string>AdCentral</string>
        |        <string>ad-central</string>
        |      </array>
        |    </dict>
        |  </array>
        |""".trimMargin()
    }
    Now my app will open when I trigger any url with the schema
    <ad-central://test>
    , but I don't seem to be able to actually gain access to the URL that was used to open the app to retrieve information I'd like to pass to the app. Does anyone know how to do this, or have any places I could start to look? I'm a bit stumped.
    t
    3 replies · 2 participants
  • s

    Scott Martin

    04/16/2022, 4:50 AM
    What would be the best way of stopping someone from intercepting and reading my network traffic in my production Compose Desktop application?
    i
    1 reply · 2 participants
  • t

    Thomas

    04/16/2022, 8:39 PM
    When including the Compose plugin in a multiplatform module, is there a way to only apply it to the JVM targets? My module also contains native targets but I do not want the plugin to be applied to those, only jvm and Android. Is there a way to exclude the compiler for all the native targets?
    z
    5 replies · 2 participants
  • k

    Kavin Gupta

    04/17/2022, 12:01 AM
    Hey, not sure why, but all of a sudden there's a weird refresh icon at the bottom right of my window, no matter what I run. Even just
    fun main() = application {
        Window(onCloseRequest = ::exitApplication) {}
    }
    has this icon in the bottom right, which sometimes morphs into a pause button for a few frames. Anyone have any idea why?
    r
    2 replies · 2 participants
  • p

    PHondogo

    04/18/2022, 2:49 PM
    Hello! What does
    java.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.ModifierLocalConsumerNode@1d3e8489 is not attached!
    means?
    z
    4 replies · 2 participants
  • r

    redenergy

    04/18/2022, 11:00 PM
    Hey! Is there any publicly available theme which mimics windows's native theme? I only found the one for macos
    k
    2 replies · 2 participants
  • x

    xxfast

    04/19/2022, 2:02 AM
    Anyone else blocked by Compose multiplatform support for 1.6.20? Recently got an m1 mac and this particular issue prevents me from using compose-jb 1.1.1 @ kotlin 1.6.0 on my m1. Wondering if anyone got a workaround for this
    ✅ 1
    j
    3 replies · 2 participants
  • r

    Remo

    04/19/2022, 11:53 AM
    Hi there! We try to implement a TextField which comes with a Dropdown containing suggestions, based on the text typed. Unfortunately, due to the lack of focus (since the textfield has it) in the dropdown, it won’t close when the User clicks outside of the Dropdown. The behavior is correct in my opinion, but we somehow gonna need to close that Dropdown, even if it’s not focused. If we assign the focus to the Dropdown, then we cannot type into the TextField anymore… Question: is there a similar UI component already existing or does anybody know a good workaround? My initial intention would be to implement a listener which detects clicks outside of the Dropdown… But it feels like there should be a easier solution available…
    s
    2 replies · 2 participants
  • y

    Yan Pujante

    04/20/2022, 5:53 PM
    Just created an empty compose-desktop project with latest IDEA/Utlimate (2022.1) and trying to add a dependency:
    sourceSets {
            val jvmMain by getting {
                dependencies {
                    implementation(compose.desktop.currentOs)
                    implementation(files("external/libs/luaj-jse-3.0.2.jar"))
                }
            }
    but the dependency is not being picked up. If I replace the path with
    /foo.jar
    nothing happens either, not even an error message. Any idea what is wrong?
    k
    d
    5 replies · 3 participants
  • s

    Slackbot

    04/21/2022, 8:34 PM
    This message was deleted.
    k
    s
    4 replies · 3 participants
  • a

    Archie

    04/22/2022, 3:08 AM
    Hi to people using Compose Multiplatform with Android and Desktop Targets. Just wondering how you deal with WindowInsets in Android?
    👀 1
    d
    1 reply · 2 participants
  • a

    Akram Bensalem

    04/22/2022, 12:30 PM
    when I updated to both Kotlin 1.6.21 and 1.6.20 I got this error
    k
    h
    9 replies · 3 participants
  • r

    Remo

    04/23/2022, 3:31 PM
    Would anyone know how to add a VerticalScrollbar to a DropdownMenu?
    ➕ 3
    1 reply · 1 participant
  • s

    sasikanth

    04/24/2022, 2:19 PM
    Hello, does anyone know how to set the elevation to an undecorated window? I have tried using the
    Modifier
    on my background composable but the elevation gets clipped.
    k
    2 replies · 2 participants
Powered by Linen
Title
s

sasikanth

04/24/2022, 2:19 PM
Hello, does anyone know how to set the elevation to an undecorated window? I have tried using the
Modifier
on my background composable but the elevation gets clipped.
k

Kirill Grouchnikov

04/24/2022, 4:47 PM
That wouldn't work since that drop shadow will need to be somehow displayed by the OS itself
👍🏻 1
s

sasikanth

04/25/2022, 12:28 AM
Ah, got it. I was able to get the shadow for undecorated windows by setting
transparent
to
false
. But it’s only working on Mac and not on Windows.
View count: 10