eygraber
06/20/2022, 8:26 PMBrendan Campbell-hartzell
06/21/2022, 12:03 AMAnnotatedString
and I'm running into problems with removing a particular style from a range of text. Currently, I'm breaking the AnnotatedString into three parts: before the selection, the selection, and after the selection, mapping over the styles in the selection to remove the style, then combining them back together. The problem is that this leaves a lot of ranges with no styles inside the AnnotatedString. Is there a better way to be doing this?antonioleiva
06/21/2022, 9:12 AMFrancesco Pedron
06/22/2022, 4:22 PMAlexander Maryanovsky
06/22/2022, 8:17 PMText
with tall glyphs, like “㎥” it causes it to be taller than regular text, making it misaligned with other `Text`s. Is there a way to tell Text
to ignore such tall glyphs and always use the regular font height?Oliwier
06/23/2022, 11:42 AMAdam Brown
06/23/2022, 5:55 PMSean Proctor
06/23/2022, 8:57 PM毛小川
06/24/2022, 7:17 AMItem
by drag/drop which in LazyColumn
?Brendan Campbell-hartzell
06/24/2022, 6:36 PMLawrence
06/26/2022, 11:32 PMRemo
06/27/2022, 8:15 AMhorizontalArrangment
should do it (which it obviously doesn’t)…
BasicTextField(
value = "Hi",
onValueChange = { },
textStyle = TextStyle(color = ColorsUtil.get(FormColors.NORMALTEXT)),
readOnly = true,
modifier = Modifier.height(20.dp).background(Color.Cyan, CircleShape).border(border = BorderStroke(1.dp, Color.Red))
) { innerTextField ->
Row(horizontalArrangement = Arrangement.Start, modifier = Modifier.padding(horizontal = 5.dp)) {
innerTextField()
if (isRemovable) {
IconButton(
onClick = { },
modifier = Modifier.clip(CircleShape).height(20.dp).border(border = BorderStroke(1.dp, Color.Magenta))
) {
Icon(Icons.Filled.Close, "Remove", tint = Color.Black)
}
}
}
}
Remo
06/27/2022, 3:11 PMDropdownMenu
with n DropdownMenuItem
? As far as I’ve found, it works with Elements such as `LazyColumn`etc. But what about DropdownMenu
?John O'Reilly
06/29/2022, 7:35 PMmcpiroman
06/29/2022, 9:00 PMspierce7
06/30/2022, 11:14 PMMichael Paus
07/01/2022, 2:36 PMandylamax
07/02/2022, 2:20 PMAdam Brown
07/02/2022, 9:13 PMRacka N
07/03/2022, 12:18 PM1.7.0
and compose: 1.2.0-alpha01-dev731
all my imports are broken and the app fails to build with:
java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.ir.expressions.impl.IrConstructorCallImpl.<init>(int, int, org.jetbrains.kotlin.ir.types.IrType, org.jetbrains.kotlin.ir.symbols.IrConstructorSymbol, int, int, int, org.jetbrains.kotlin.ir.expressions.IrStatementOrigin, int, kotlin.jvm.internal.DefaultConstructorMarker)'
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer.irLiveLiteralFileInfoAnnotation(LiveLiteralTransformer.kt:232)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer.access$irLiveLiteralFileInfoAnnotation(LiveLiteralTransformer.kt:158)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer$visitFile$1$1.invoke(LiveLiteralTransformer.kt:497)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer$visitFile$1$1.invoke(LiveLiteralTransformer.kt:480)
at androidx.compose.compiler.plugins.kotlin.lower.DurableKeyVisitor.siblings(DurableKeyVisitor.kt:117)
at androidx.compose.compiler.plugins.kotlin.lower.DurableKeyVisitor.root(DurableKeyVisitor.kt:152)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer.visitFile(LiveLiteralTransformer.kt:480)
at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFile(IrElementTransformerVoid.kt:48)
at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoid.visitFile(IrElementTransformerVoid.kt:24)
at org.jetbrains.kotlin.ir.declarations.IrFile.accept(IrFile.kt:22)
at org.jetbrains.kotlin.ir.declarations.IrFile.transform(IrFile.kt:25)
at org.jetbrains.kotlin.ir.declarations.IrFile.transform(IrFile.kt:14)
at org.jetbrains.kotlin.ir.util.TransformKt.transformInPlace(transform.kt:35)
at org.jetbrains.kotlin.ir.declarations.IrModuleFragment.transformChildren(IrModuleFragment.kt:40)
at org.jetbrains.kotlin.ir.visitors.IrElementTransformerVoidKt.transformChildrenVoid(IrElementTransformerVoid.kt:346)
at androidx.compose.compiler.plugins.kotlin.lower.LiveLiteralTransformer.lower(LiveLiteralTransformer.kt:171)
at androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension.generate(ComposeIrGenerationExtension.kt:107)
at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$lambda-1(JvmIrCodegenFactory.kt:162)
at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:99)
at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:194)
at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:53)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.convertToIr(KotlinToJVMBytecodeCompiler.kt:232)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:115)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:60)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:157)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:94)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:477)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:127)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:366)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally$default(IncrementalCompilerRunner.kt:311)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl$rebuild(IncrementalCompilerRunner.kt:111)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileImpl(IncrementalCompilerRunner.kt:165)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:74)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:625)
at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:101)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1739)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Any ideas as to what may be wrong? I've check some of issues on Github and they seem to having a slightly different stack trace from this one.james
07/04/2022, 11:31 PM// TextField isn't efficient for big text files, we use it for simplicity
does this still hold true? if so, is there a recommended strategy for building a custom TextField which can handle large amounts of text? I understand that saying “large” is fairly ambiguous, so let’s say “up to 10 MB” of pure text
in short, I am curious if I will be able to achieve this by heavily customising BasicTextField, or if I will have to write something from scratch (since even CoreTextField is internal to compose.foundation.text)james
07/05/2022, 4:37 AMserandel
07/05/2022, 7:35 AMDispatcher.Main
in Compose for Desktop? Or should I just depend on kotlinx-coroutines-android
?Sean Proctor
07/05/2022, 4:03 PMLucas
07/05/2022, 4:15 PMNorbi
07/05/2022, 5:54 PMsupport Kotlin 1.7.0I'm happy that it won't take a long time to support Kotlin 1.7.0 - nice work :)
eygraber
07/05/2022, 7:07 PMjava.lang.IncompatibleClassChangeError: Found interface org.jetbrains.kotlin.ir.types.IrSimpleType, but class was expected
at androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer.stabilityOf(Stability.kt:420)
at androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer.stabilityOf$default(Stability.kt:383)
at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.stabilityOf(AbstractComposeLowering.kt:178)
Sean Proctor
07/07/2022, 9:18 PMLucas
07/07/2022, 10:27 PMdeviant
07/08/2022, 12:53 PM