https://kotlinlang.org
Join Slack
When I use AsyncImage from `coil` in a `lazyList` I see lags during scrolling because image needs so...
e

electrolobzik

almost 2 years ago
When I use AsyncImage from
coil
in a
lazyList
I see lags during scrolling because image needs some time to load. Is it possible to somehow preload a couple of items in direction of scrolling to avoid that lags? I was not able to find any API for that.
e
u
+3
  • 5
  • 37
  • 1330
Whenever I try to `readln()` I get `Exception in thread "main" kotlin.io.ReadAfterEOFException: EOF ...
k

Karlo Lozovina

almost 4 years ago
Whenever I try to
readln()
I get
Exception in thread "main" kotlin.io.ReadAfterEOFException: EOF has already been reached
Running the app via gradle, any ideas why it's happening?
k
j
  • 2
  • 4
  • 1327
Does multiplatform library have the access to run background tasks for android and iOS? Sample use c...
j

Joey

almost 6 years ago
Does multiplatform library have the access to run background tasks for android and iOS? Sample use case is to monitor their location even app is in the background. Thanks in advance!
j
o
  • 2
  • 7
  • 1327
Hi All Is there any way to use Android Context in the KMM test?
h

Hossein Amini

about 4 years ago
Hi All Is there any way to use Android Context in the KMM test?
h
h
g
  • 3
  • 7
  • 1326
Does Compose Multiplatform allow changing the `statusBarColor` (android, ios, desktop) with “one lin...
a

Andrey Larionov

almost 2 years ago
Does Compose Multiplatform allow changing the
statusBarColor
(android, ios, desktop) with “one line” of code? (similar to
accompanist
library) Or should I declare an expect/actual functions?
👀 1
a
p
j
  • 3
  • 2
  • 1325
Just bumped to Kotlin `1.7.0` and am seeing this in Kotest: ```Found interface kotlin.time.TimeMark,...
j

James Eschner

over 3 years ago
Just bumped to Kotlin
1.7.0
and am seeing this in Kotest:
Found interface kotlin.time.TimeMark, but class was expected
java.lang.IncompatibleClassChangeError: Found interface kotlin.time.TimeMark, but class was expected
	at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor.intercept-0E7RQCE(SpecFinishedInterceptor.kt:37)
	at io.kotest.engine.spec.interceptor.SpecFinishedInterceptor$intercept$1.invokeSuspend(SpecFinishedInterceptor.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
do I need to wait for a new Kotest version? ** Not a contribution
j
s
+4
  • 6
  • 19
  • 1322
Is there any way to make the clickable region larger than the icon without making the icon size bigg...
s

Sergey Y.

about 5 years ago
Is there any way to make the clickable region larger than the icon without making the icon size bigger? I want to achieve a borderless ripple effect and easier clicking. Maybe some modifier? Is there an analogy to the 
selectableItemBackgroundBorderless
 attribute? Thanks.
s
f
+5
  • 7
  • 24
  • 1321
Hey guys what this error means? `Serializer has not been found for type 'ZonedDateTime'. To use con...
v

Vivek Modi

over 3 years ago
Hey guys what this error means?
Serializer has not been found for type 'ZonedDateTime'. To use context serializer as fallback, explicitly annotate type or property with @Contextual
@Serializable
@Parcelize
data class NearestResult(
    val day: ZonedDateTime,
    val event: String
) : Parcelable
v
l
p
  • 3
  • 4
  • 1320
Is it possible to move cursor to end position in TextField with initial value? I set it to the end ...
l

Luis Daivid

about 4 years ago
Is it possible to move cursor to end position in TextField with initial value? I set it to the end of the text using TextFieldValue’s selection, and the cursor stays fixed at the last position even if the user clicks in the middle of the text. What I want is for the cursor to be positioned at the last position only when it is first focused, and the user should be able to move the cursor.
🙌 1
l
z
  • 2
  • 9
  • 1318
I set `allWarningsAsErrors = true` in all of my projects because I find that addressing warnings bef...
e

eygraber

over 1 year ago
I set
allWarningsAsErrors = true
in all of my projects because I find that addressing warnings before they become bugs makes life easier. However a lot of build functionality uses the same concept of warning to flag things that can't be addressed by the user. There's been discussion about this before (e.g. here and here) and now I've run into it again when trying to update to Kotlin 2.0.0 in a project that uses kapt. If I set
kapt.use.k2 = false
I get this warning:
> Task :app:kaptGenerateStubsDebugKotlin FAILED
w: Kapt currently doesn't support language version 2.0+. Falling back to 1.9.
e: warnings found and -Werror specified
and if I set
kapt.use.k2 = true
I get this warning:
> Task :app:kaptGenerateStubsDebugKotlin FAILED
w: K2 kapt is an experimental feature. Use with caution.
e: warnings found and -Werror specified
in both cases my only recourse to using Kotlin 2.0.0 is to set
allWarningsAsErrors = false
which can lead to the quality of my project degrading. It would be nice if
allWarningsAsErrors
differentiated between warnings that are resolvable by the user, and warnings that are not.
youtrack 1
same 2
💯 2
e
u
  • 2
  • 2
  • 1317
Previous242526Next

kotlinlang

A modern programming language that makes developers happier.

Powered by