Torsten Wiederkehr
02/21/2022, 6:09 PMtheapache64
02/21/2022, 8:46 PMonPress
nor onTap
getting triggered on Button
? 🤔 🧵Matthew Laser
02/22/2022, 1:35 AMjavax.sound.midi
package, as well as the JSyn package. I was able to get the same code playing sounds from a swing JApplet
, but haven't been able to hear anything coming out of Compose. Anyone have any ideas?lhwdev
02/22/2022, 2:59 AMxxfast
02/22/2022, 10:27 PMKebbin
02/23/2022, 5:28 AMDavid W
02/24/2022, 12:54 AMDropdownMenuItem(
onClick = {...}) {
Icon(
painter = painterResource(item.iconPath),
modifier = Modifier.padding(end = 4.dp),//.size(24.dp),
contentDescription = null
)
Text(
text = item.text
)
}
}
.size
commented out = left, wrapped.
not commented out = right, not wrapped.
This is on Compose 1.1.0-rc01
, but also happens on 1.0.1
.Kebbin
02/24/2022, 4:06 AM毛小川
02/24/2022, 6:18 AMTextField
?Emily V
02/24/2022, 6:35 PMSrSouza
02/25/2022, 12:21 AM毛小川
02/25/2022, 2:05 AMCoroutines
(img1)to read something(?), when it's not null ,I want send this to a function`@Composable` for update variables(mutableStateOf
) ,How can I achieve? thanks!Brendan Campbell-hartzell
02/25/2022, 7:57 AMJavier
02/25/2022, 10:59 AMCould not find org.jetbrains.compose.compiler:compiler:1.1.0.
Spikey Sanju
02/25/2022, 3:24 PMDesktop Compose App
as a DMG file
on M1 MacBook
?Spikey Sanju
02/26/2022, 7:13 AMSQL Delight's
Todo notes app are not persisting data when I install My Desktop Compose App
as DMG
file on my M1 Macbook
?
But everything works fine on my dev machine.Kebbin
02/26/2022, 11:08 AMText
object's contents in a @Composable
to update when a global String variable changes.
I have a global String var dataIn = ""
that regularly fills with characters like data += char
in one function, but I can't get its value change to recompose the displayed Text
in the other function!
I thought it should be doable using var dataDisplay: String = remember { mutableStateOf(dataIn) }
and Text(text = dataDisplay)
but it won't update the text display every time a new char is added to the dataIn
variable.
Thanks again!Kebbin
02/26/2022, 11:53 AM@Composable
function from a Window()
's MenuBar
???
I can't do it from a Window
in the main
function, as that can't be @Composable
, and a @Composable
can't be called from anything but a @Composable
?
But a Window
in a @Composable
function still can't seem to do it!
Sorry! Thanks! 🥴spierce7
02/26/2022, 8:57 PMKebbin
02/27/2022, 11:27 AM毛小川
02/28/2022, 3:11 AMAlexander Maryanovsky
02/28/2022, 1:56 PMModifier.focusable(false)
doesn’t work on buttons. I took the first focus example from https://github.com/JetBrains/compose-jb/tree/master/tutorials/Tab_Navigation and added a button at the bottom:
TextButton(
onClick = { println("Clicked") },
modifier = Modifier.focusable(false)
){
Text("Click me")
}
and the button still participates in focus navigation, and when it has focus and I press ENTER, it prints “Clicked”.
Is it a bug or am I misunderstanding what focusable(false)
should do?Alexander Maryanovsky
02/28/2022, 8:57 PMColumn
with a VerticalScrollBar
that grows with its contents until it reaches the maximum available space and then becomes scrollable. The code looks approximately like this:
Box{
Column(
modifier = Modifier.verticalScroll(scrollState)
) {
...
}
VerticalScrollbar(
modifier = Modifier.align(Alignment.CenterEnd).matchParentSize()
)
}
Without the scrollbar, it works fine.
Unfortunately, as soon as I add the scrollbar, it stretches the Box
to fill all the available height. It doesn’t seem to respect the matchParentSize
modifier.毛小川
03/01/2022, 11:42 AMLazyColumn
, but not compiling.Such as:
LazyColumn(
//
){
mutableStateArrays.forEachIndexed { index, value ->
Row(
modifier = Modifier.padding(top = 10.dp),
horizontalArrangement = Arrangement.Center
) {
OutlinedTextField(
//
)
DropdownMenu(
//
) {
//
}
}
}
}
毛小川
03/03/2022, 6:42 AMSystem.getProperty("user.dir")
,when running from .exe
,it throw exception.I want get the application's path because of export logfelislynx
03/03/2022, 7:57 AM/usr/bin/security find-certificate -c "Developer ID Application"
I’ve filled gradle configuration and packageDmg fails, with exit code 1 for task “Execution failed for task ‘:createDistributable’.“.
If i run command that fails i get “no matches found: <my cert id>”ralf
03/04/2022, 5:08 PM1.2.0-dev-k1.6.20-RC-21f332eaa05
. Does Jetbrains provide a similar build for Desktop?David W
03/05/2022, 5:06 AMjre
that contains a jre, the exe appears to try to use that JRE instead of the one in the exe's folder.
./ComposeApp/app.exe
./jre/bin/java.exe
It crashes before even getting to my Main method, and running it from cmd outputs:
C:\Program Files (x86)\Fractal Softworks\Starsector\SMOL_Dist> .\SMOL.exe
Error: could not open `C:\Program Files (x86)\Fractal Softworks\Starsector\jre\lib\jvm.cfg'(not that the
jre
folder is ../jre
, relative to the exe)
If I move the application folder anywhere else, it runs fine. If I rename jre
to anything else, it runs fine.
Anyone have any ideas as to what could be causing this? I don't want it to have any interaction with that jre folder, it's pure coincidence that many users are placing it next to a jre
folder.pajatopmr
03/05/2022, 9:06 AMpajatopmr
03/05/2022, 9:06 AMid("org.jetbrains.kotlinx.kover") version "0.4.2"
A Gradle run of the clean and build tasks is successful at doing nothing. Next step is to add a Kover configuration, borrowing from another project so that the kover configuration is:
kover {
isEnabled = true
coverageEngine.set(kotlinx.kover.api.CoverageEngine.INTELLIJ)
intellijEngineVersion.set("1.0.622")
generateReportOnCheck.set(true)
}
Igor Demin
03/08/2022, 7:01 PMpajatopmr
03/08/2022, 7:04 PMIgor Demin
03/08/2022, 7:31 PMpajatopmr
03/09/2022, 6:19 AM