pavi2410
01/19/2022, 6:16 PMMoritz Post
01/20/2022, 12:12 PMCanvas
composable in my compose desktop app. I have found that the Canvas.onDraw
method is called multiple times although the size of the canvas has not canged. This leads to jank since the drawing is quite intensive. Next to the canvas i have a couple of items that are clickable() so they show hoover feedback for the mouse cursor. Even just hoovering over these unrelated items triggers a redraw of the canvas. Is there a way to circumvent this redrawing?Colton Idle
01/20/2022, 8:01 PMSebastian Kürten
01/21/2022, 3:51 PMJavier
01/21/2022, 6:10 PMshadow
has a different source of light in desktop (left top) respect to Android (center top). I think the common Modifier
should have the same behavior in both platform and if a design system like Material needs to change the position, should create an additional modifier, but not sure if shadow
should be renamed to basicShadow
similar to BasicText
and Button
spierce7
01/22/2022, 12:10 AM谢朋刚
01/24/2022, 8:49 AMMichael Paus
01/24/2022, 11:08 AMJavier
01/24/2022, 11:24 AMsize
has preference here`Modifier.size(200.dp).size(400.dp)` and the second is completely ignored?Colton Idle
01/24/2022, 4:09 PMColton Idle
01/25/2022, 1:35 PMspierce7
01/25/2022, 4:27 PMJoakim Forslund
01/25/2022, 5:30 PMcommonMain
dependencies for compose and just tell the iOS target not to try finding the dependencies for compose? Or do I need to set up the compose dependencies for each target?zfan93
01/26/2022, 2:44 AMJohn Aoussou
01/26/2022, 10:06 AMBen Woodworth
01/26/2022, 7:53 PMKirill Grouchnikov
01/27/2022, 7:44 PMTunji Dahunsi
01/28/2022, 4:16 PM1.2.0-alpha1-dev578
, but I run into
Could not find org.jetbrains.compose.foundation:foundation-layout-android-debug:1.2.0-alpha1-dev578
I can build for desktop just fine. Looking at the dependency history on maven, this hasn’’t been updated in a while: https://mvnrepository.com/artifact/org.jetbrains.compose.foundation/foundation-android-debug
I’m not quite sure why it’s only erroring now.theapache64
01/31/2022, 7:37 PM@Preview
doesn’t show the ▶️ icon ? 🤔
What am i missing?manueldidonna
01/31/2022, 11:26 PMPHondogo
02/01/2022, 8:24 AMScaffold(
drawerContent = {} // if this is commented out then exception will not be raised on right click on TextField
) {
var value by remember { "".toMutableState2() }
TextField(value, onValueChange = { value = it })
}
If right click on TextField exception occurs:
Exception in thread "AWT-EventQueue-0 @coroutine#40" java.lang.NullPointerException
at androidx.compose.foundation.gestures.DragGestureDetectorKt.awaitHorizontalPointerSlopOrCancellation-gDDlDlE(DragGestureDetector.kt:1133)
at androidx.compose.foundation.gestures.DragGestureDetectorKt$awaitHorizontalPointerSlopOrCancellation$1.invokeSuspend(DragGestureDetector.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:178)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328)
at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter$PointerEventHandlerCoroutine.offerPointerEvent(SuspendingPointerInputFilter.kt:511)
at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter.dispatchPointerEvent(SuspendingPointerInputFilter.kt:406)
at androidx.compose.ui.input.pointer.SuspendingPointerInputFilter.onPointerEvent-H0pRuoY(SuspendingPointerInputFilter.kt:419)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:310)
at androidx.compose.ui.input.pointer.NodeParent.dispatchMainEventPass(HitPathTracker.kt:179)
at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(HitPathTracker.kt:98)
at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(PointerInputEventProcessor.kt:80)
at androidx.compose.ui.platform.SkiaBasedOwner.doProcessPointerInput-8iAsVTc(SkiaBasedOwner.skiko.kt:383)
at androidx.compose.ui.platform.SkiaBasedOwner.processPointerInput-8iAsVTc$ui(SkiaBasedOwner.skiko.kt:379)
at androidx.compose.ui.ComposeScene.sendPointerEvent-aC5X19Y(ComposeScene.skiko.kt:385)
at androidx.compose.ui.ComposeScene.sendPointerEvent-aC5X19Y$default(ComposeScene.skiko.kt:354)
at androidx.compose.ui.awt.ComposeLayer_desktopKt.onMouseEvent(ComposeLayer.desktop.kt:254)
at androidx.compose.ui.awt.ComposeLayer_desktopKt.access$onMouseEvent(ComposeLayer.desktop.kt:1)
at androidx.compose.ui.awt.ComposeLayer$4$mouseMoved$1.invoke(ComposeLayer.desktop.kt:178)
at androidx.compose.ui.awt.ComposeLayer$4$mouseMoved$1.invoke(ComposeLayer.desktop.kt:177)
at androidx.compose.ui.awt.AWTDebounceEventQueue$job$1.invokeSuspend(AWTDebounceEventQueue.desktop.kt:59)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Sebastian Kürten
02/01/2022, 11:48 AMval packageUberJarForCurrentOS by getting
Abdelilah El Aissaoui
02/01/2022, 1:46 PMSebastian Kürten
02/01/2022, 10:31 PMDieter Holz
02/02/2022, 3:16 PMcommonMain
Using IDEA 2021.3.2
Any advice?Miquel Àngel Román
02/03/2022, 9:22 AMDavid W
02/04/2022, 9:35 PMKirill Grouchnikov
02/05/2022, 4:36 PMVishnu Haridas
02/05/2022, 9:42 PMbuildConfigField()
in build.gradle in Android projects, which generates the BuildConfig.java file, and that can be used during runtime.
Is there a similar approach in Compose Desktop projects so that I can add secrets as System Env variable (or even a git-ignored properties file) and don't have to commit it?
I added a question on StackOverflow just now: https://stackoverflow.com/questions/71002334/compose-desktop-projects-how-to-include-api-keys-or-other-secrets-without-comtherealbluepandabear
02/06/2022, 12:39 AMtherealbluepandabear
02/06/2022, 12:39 AMColton Idle
02/07/2022, 6:04 PM