Casey Brooks
01/14/2021, 5:02 PMBox
using pointerMoveFilter
, but I need to detect down events to focus a single item, and up to drop. However, it seems like using Modifier.pointerInput { handlePointerInput { ... } }
can detect up/down events, but move events are handled by the child relative to the child, and the parent Box
never receives those move events until I drop the childtheapache64
01/15/2021, 3:45 AMeekboom
01/15/2021, 12:17 PMvar text by remember { mutableStateOf("") }
TextField(
value = text,
onValueChange = { text = it }
)
Things that don't work: DEL key, Pos1 and End keys, text selection using Shift-Left/Right, navigating by word using Ctrl-Left/Right
Using latest Kotlin 1.4.21 and org.jetbrains.compose version 0.3.0-build140Animesh Sahu
01/15/2021, 2:45 PMFocusRequester.requestFocus()
? Seems like that doesn't work on a TextField
with Modifier.focusModifier().focusRequester(requester)
:blob-thinking-upside-down:Didier Villevalois
01/16/2021, 10:19 AMLuc Girardin
01/18/2021, 10:11 PMColton Idle
01/18/2021, 10:34 PMLazyColumn{
items(movies){
MovieCard(it)
}
}
MovieCard(movie: Movie){
Text(movie.name)
LazyColumn{
items(movie.reviews){
ReviewItem(it)
}
}
}
You get an error like this
java.lang.IllegalStateException: Nesting scrollable in the same direction layouts like ScrollableContainer and LazyColumn is not allowed. If you want to add a header before the list of items please take a look on LazyColumn component which has a DSL api which allows to first add a header via item() function and then the list of items via items().
Problem is solved if the LazyColumn in MovieCard just become a Column and I iterate with a for loop. BUT I want that inner loop to be performant and handle being super long. So I don't want a "dumb" Column. I need something that will recycle those ReviewItems.Suser
01/19/2021, 8:00 AMimplementation("dev.chrisbanes.accompanist:accompanist-coil:0.4.2")
from the mavenCentral() repository. I can see that this file is there on maven central but i get:
CCould not resolve dev.chrisbanes.accompanist:accompanist-coil:0.4.2.
Required by:
project :
Possible solution:
- Declare repository providing the artifact
Luc Girardin
01/19/2021, 2:19 PMcompose.desktop {
application {
disableDefaultConfiguration()
from(kotlin.targets["compose"])
}
}
With the JS target in legacy mode, everything compile and run just fine. In IR mode I however get the following error: :compileKotlinJsIr FAILED
e:androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.0.0-alpha11) expects a minimum runtime version of 1.0.0-alpha11.
Is there maybe a workaround or is there another option to limit the scope of the Compose plugin?suresh
01/19/2021, 8:11 PMRajashekar
01/20/2021, 12:45 PMSkIcuLoader: datafile missing: C:\Users\rajas\.jdks\openjdk-15.0.2\bin\icudtl.dat.
Exception in thread "AWT-EventQueue-0 @coroutine#2" java.lang.RuntimeException: Can't wrap nullptr
at org.jetbrains.skija.impl.Native.<init>(Native.java:12)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:15)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:11)
at org.jetbrains.skija.impl.RefCnt.<init>(RefCnt.java:7)
at org.jetbrains.skija.DirectContext.<init>(DirectContext.java:21)
at org.jetbrains.skiko.RenderTargetsKt.makeGLContext(RenderTargets.kt:6)
at org.jetbrains.skiko.SkiaLayer.draw(SkiaWindow.kt:55)
at org.jetbrains.skiko.HardwareLayer.redrawLayer(Native Method)
at androidx.compose.desktop.ComposeLayer.onFrame(ComposeLayer.kt:75)
at androidx.compose.desktop.ComposeLayer$onFrame$1.invokeSuspend(ComposeLayer.kt)
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)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Can't wrap nullptr
at org.jetbrains.skija.impl.Native.<init>(Native.java:12)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:15)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:11)
at org.jetbrains.skija.impl.RefCnt.<init>(RefCnt.java:7)
at org.jetbrains.skija.DirectContext.<init>(DirectContext.java:21)
at org.jetbrains.skiko.RenderTargetsKt.makeGLContext(RenderTargets.kt:6)
at org.jetbrains.skiko.SkiaLayer.draw(SkiaWindow.kt:55)
at org.jetbrains.skiko.HardwareLayer.redrawLayer(Native Method)
at org.jetbrains.skiko.HardwareLayer.display(HardwareLayer.kt:20)
at org.jetbrains.skiko.HardwareLayer.paint(HardwareLayer.kt:16)
at java.desktop/sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
at java.desktop/sun.awt.RepaintArea.paint(RepaintArea.java:240)
at java.desktop/sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:371)
xetra11
01/20/2021, 2:52 PMDirk Hoffmann
01/20/2021, 3:50 PMColumn {
header() { }
Row {
leftBar() { }
centerContent() { }
rightBar() { }
}
footer() { }
}
where header, left/rightBar and footer "eat up" as much height as these components are (means whatever is in in them)
and taking the center content "eat up the rest" of available window space.
So that if I resize the window, header/footer height and left/rightBar width stay fixed (size depends only on their contents)
but centerContent() stretches/expands to get all the new available space on resizing.
Whenever I give the centerContent fillxxxSize()
it also eats up the space of the components below/toTheRight, which then are no more visible.
What's the way to have a component eat up all the space there is for it, but no more concerning components below beside it ???SrSouza
01/20/2021, 4:46 PMKirill Grouchnikov
01/20/2021, 6:52 PMInteraction.Pressed in interactionState
+ Modifier.toggleable
in build 141. Getting the smallest repro now and filing a bug.nrobi
01/21/2021, 6:12 AMwithJava()
and if it’s really needed by compose?
• If I use it, then my dependencies are not resolved (their jvm()
configuration doesn’t contain withJava()
)
• Otherwise I’m getting Could not find or load main class
(not 100% sure if it’s related, but the package name looks okay, so I’m guessing withJava
has something to do with sourceSet configuration 🤔)ventura
01/21/2021, 11:21 AM*.compose
library calling native components in C/C++?ragunathjawahar
01/21/2021, 11:32 AMK J
01/21/2021, 11:12 PMNoSuchMethodError
when trying to add Compose Desktop to my current project. I'm using Kotlin 1.4.30-RC (though this happens with 1.4.20 as well) and Compose Alpha 0.3.0-build141.
Dirk Hoffmann
01/22/2021, 3:18 PMolonho
01/22/2021, 3:59 PMalorma
01/22/2021, 9:32 PMCarson Holzheimer
01/23/2021, 5:48 AMarekolek
01/23/2021, 11:54 AMMainKt has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
./gradlew run
from command line works fine
Where do I configure JDK for the IDE? (IntelliJ IDEA CE 2020.3.1)Dirk Hoffmann
01/23/2021, 4:54 PMQinghua
01/24/2021, 6:02 AMrsktash
01/24/2021, 11:20 AMJakob K
01/24/2021, 1:55 PMWindowDraggableArea
in a way that it does not override any possible interaction in its area?
For example, if I define a WindowDraggableArea
and put a Button
inside of it, it is impossible to interact with the button (the draggable area seems to always be "on top").Filip Wiesner
01/24/2021, 4:38 PMYan Pujante
01/24/2021, 6:57 PM./gradlew packageMsi
builds "successfully" but doesn't do anything. It seems that you need to be using a Windows machine to build a .msi package. Or not? That being said, can I build something on macOS that is runnable on Windows without building a .msi package?Yan Pujante
01/24/2021, 6:57 PM./gradlew packageMsi
builds "successfully" but doesn't do anything. It seems that you need to be using a Windows machine to build a .msi package. Or not? That being said, can I build something on macOS that is runnable on Windows without building a .msi package?Big Chungus
01/24/2021, 7:14 PMYan Pujante
01/24/2021, 7:15 PMaltavir
01/24/2021, 7:15 PMBig Chungus
01/24/2021, 7:15 PMYan Pujante
01/24/2021, 7:18 PMBig Chungus
01/24/2021, 7:20 PM