Gordon
07/20/2022, 12:10 PMlewik
07/20/2022, 12:57 PMK J
07/20/2022, 8:06 PMorangy
07/22/2022, 1:47 PMaltavir
07/22/2022, 4:13 PMspierce7
07/22/2022, 4:34 PMgradlew
etc.
I created it with the wrong name, and when I folder name for the module, I was getting an error, not because the module / project was referenced from settings.gradle.kts
but rather because the file was referenced inside of .idea/workspace.xml
Is this all something steering me towards a best practice that I’m unaware of?Remo
07/22/2022, 6:09 PMspierce7
07/22/2022, 7:23 PMStuie
07/23/2022, 11:10 PMArkadii Ivanov
07/24/2022, 11:58 AMLookaheadLayout
and movableContentOf
are available in 1.2.0-alpha01-dev750
. They both are accessible from commonMain
targeting Desktop and Android. It compiles just fine for Desktop, but the compilation fails for Android with:
Unresolved reference: LookaheadLayout
Unresolved reference: movableContentOf
Is it not possible to use that yet? Why is it resolved in the IDE?Yousef
07/24/2022, 5:01 PMRemo
07/25/2022, 12:43 PMonPreviewKeyEvent
or so?Jerry Yion
07/26/2022, 7:25 AMJerry Yion
07/26/2022, 7:28 AMJerry Yion
07/26/2022, 7:28 AMLucas
07/26/2022, 1:01 PMspierce7
07/27/2022, 8:30 PMxxfast
07/28/2022, 1:06 AMRacka N
07/28/2022, 5:39 AM@Serializable
annotations have been removed despite adding the required rules for kotlinx.Serialization
and I get a runtime crash when I initiate a network call. SLF4J
also gets removed.Sean Proctor
07/28/2022, 11:15 AMGuilherme Delgado
07/28/2022, 2:07 PMwindowState.size.width
to be 1/3 of screen width, how can I achieve this?
Didn’t found any samples/docs, but one approach is to use Dp.Unspecified
for it’s width, and make the children use width.fillMaxWidth
, create a LaunchedEffect
and change the value like windowState.size.width = windowState.size.width/3
. But this feels hacky 😅 and obviously it will be visually noticed.
So, do I have another way to do it (hope so 🙏 )?Jose Luis Ku Uc
07/28/2022, 4:39 PMorangy
07/28/2022, 6:19 PMIDEA 2022.*
can try this home-built plugin that brings Android Studio features around Compose to IntelliJ in non-Android projects. CfD and CfW are supported. Colored composable functions, compose-specific inspections, support in some refactorings, some helpers in debugger, etc. You might need to configure colors for Composable functions in Preferences | Editor | Color Scheme | Compose
. Install by drag’n’drop into IDEA, or use Plugins feature to install from disk. Feedback is welcome in :thread-please: thread.Kirill Grouchnikov
07/28/2022, 10:00 PMlayer
to null
? Once this method is done, the existing layer
is marked as disposed, and it’s pretty much unusable from that point on. I do have a rather elaborate scenario where I’m running into SkiaLayer.needRedraw
crashing - see the full stack trace in threadgbaldeck
07/29/2022, 1:43 AMgbaldeck
07/29/2022, 2:06 AMAhmad Daneshvar
07/30/2022, 3:51 PMModifier.mouseClickable{}
Also, it’s need to transfer the focus to the one of modal items. You can do this by the focusRequester
and then call focusRequester.requestFocus
on it.
By this way you can open new custom modal and transfer focus from main window to it.
Thats it!Christopher Porto
07/31/2022, 7:00 AMmutableStateOf
and inside the object I have string property. Im trying to use that string property for TextField
but when I type in it, it doesn't change the text value in UI. Whats the proper way of doing this? Thanks
In parent class I have
var config by mutableStateOf(SomeConfig(""))
and then I call it like this
TextField(config.token, onValueChange = {
config.token = it
})
Gordon
07/31/2022, 7:18 AMobject CustomDialogProvider : AlertDialogProvider {
@OptIn(ExperimentalComposeUiApi::class)
@Composable
override fun AlertDialog(
onDismissRequest: () -> Unit,
content: @Composable () -> Unit,
) {
val painter = rememberVectorPainter(image = <http://Icons.Default.Engineering|Icons.Default.Engineering>)
Dialog(
title = "My Awesome Title",
icon = painter,
onCloseRequest = onDismissRequest,
state = rememberDialogState(position = WindowPosition.Aligned(Alignment.Center), size = DpSize(400.dp, 200.dp)),
undecorated = false,
resizable = false,
onKeyEvent = {
if (it.key == Key.Escape) {
onDismissRequest()
true
} else {
false
}
},
) {
WindowDraggableArea {
content()
}
}
}
}
But the dialog shows centered in the Screen, and in multi-monitor, it's not even on the correct monitor.
So, my app, runs on Monitor 1, and the dialog shows Centered on Monitor 0.
And i want it Centered on Monitor 1, and not the entire screen, centered in application window.Arkadii Ivanov
07/31/2022, 9:13 PMv1.1.1
doesn't work with Kotlin 1.7.x even with the modern Compose compiler due to the issue:
> Failed to notify project evaluation listener.
> 'void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)'
Kotlin version coupling is very inconvinient. It would be so good to backport Kotlin support to stable versions of Compose. Looks like my project (Decompose) is stuck for now. 😞Arkadii Ivanov
07/31/2022, 9:13 PMv1.1.1
doesn't work with Kotlin 1.7.x even with the modern Compose compiler due to the issue:
> Failed to notify project evaluation listener.
> 'void org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(boolean)'
Kotlin version coupling is very inconvinient. It would be so good to backport Kotlin support to stable versions of Compose. Looks like my project (Decompose) is stuck for now. 😞orangy
07/31/2022, 9:18 PMArkadii Ivanov
07/31/2022, 9:24 PMshikasd
07/31/2022, 9:48 PMmcpiroman
08/01/2022, 7:30 AMArkadii Ivanov
08/01/2022, 7:43 AM