https://kotlinlang.org
Join Slack
I'm happy to announce a new KMP-compatible NoSQL database :rocket:, with the release of my Kotlin Mu...
j

Jeff Lockhart

about 2 years ago
I'm happy to announce a new KMP-compatible NoSQL database 🚀, with the release of my Kotlin Multiplatform library for _Couchbase Lite_: Kotbase! Couchbase Lite is a JSON document database for mobile/embedded applications. Features include: • SQL++, key/value, and full-text search queries • Observable queries, documents, databases, and replicators • Binary document attachments (blobs) • Cloud-to-edge and peer-to-peer data sync Kotbase supports Android, JVM, iOS, macOS, Linux, and MinGW. Please check it out and discuss in #couchbase.
🔥 8
🎉 1
👀 1
j
l
+2
  • 4
  • 12
  • 633
Hi, the `combine` operator only emits once every flow has an emission. in my case i want to combine ...
c

Christoph Wiesner

about 3 years ago
Hi, the
combine
operator only emits once every flow has an emission. in my case i want to combine flows and it might that one flow would not emit at all - in that case i want to have the transformation receive a null value for not yet existing values of those streams.
combineAlways(flow1, flow2) { v1, v2 (null as not yet an emission) ->
...
}
is there a way to achieve that?
c
t
e
  • 3
  • 10
  • 633
Is there a way to observe the state of `MutableState` in the `init` function of `ViewModel`?
k

Kyant

over 3 years ago
Is there a way to observe the state of
MutableState
in the
init
function of
ViewModel
?
k
m
+2
  • 4
  • 9
  • 633
Hi did someone work with spotless. I'm not sure if I should go with spotless or detekt (both have kt...
l

Lilly

about 4 years ago
Hi did someone work with spotless. I'm not sure if I should go with spotless or detekt (both have ktlint integrated, while spotless has also ktfmt and diktat on board). Can someone give me an advice?
l
b
+2
  • 4
  • 26
  • 633
Im trying to create a text field with a drop down menu for most common inputs so the user can enter ...
t

Taha

almost 2 years ago
Im trying to create a text field with a drop down menu for most common inputs so the user can enter the input manually in the text field or simply click one of the options from the dropdown menu to enter it into the text field, i found the ExposedDropdownMenuBox composable in the docs and it seems like a good solution for what i need but when i try to run my app i can't type anything in the textfield when the menu is visible (even tho the text field has focus and i can see the blinking indicator) and i have to click the text field again to hide the menu and only then i can start typing in the text field, but not when the menu is visible. does anyone know a way to allow typing while the menu is visible?
t
a
  • 2
  • 6
  • 632
:mega::kotlinconf-2023::bell: <https://blog.jetbrains.com/kotlin/2023/05/kotlinconf-2023-recordings/...
h

hhariri

over 2 years ago
📣K🔔 All the talks from KotlinConf'23 are now available to watch online! ⭐ Keynote with exciting announcements 🎬 60+ content-packed sessions 🎤 Closing panel with the speakers Check them out to learn the latest insights and trends in Kotlin development
🎉 87
🙌 3
🦜 10
K 47
📌 39
K 53
h
a
+2
  • 4
  • 4
  • 632
Anyone know how to select all the text in a text field, when it gets focus? I've tried using `TextFi...
r

robnik

over 4 years ago
Anyone know how to select all the text in a text field, when it gets focus? I've tried using
TextFieldValue.selection
and changing it in
Modifier.onFocusChanged
but no luck so far.
r
r
  • 2
  • 1
  • 632
Having a problem getting ktlint to read overrides in .editorconfig; this setup: ```root = true [*.{...
c

Chris Lee

over 2 years ago
Having a problem getting ktlint to read overrides in .editorconfig; this setup:
root = true

[*.{kt,kts}]
charset = utf-8
end_of_line = lf
ktlint_code_style = ktlint_official

[dsl/*.{kt,kts}]
ktlint_standard_filename = disabled
ktlint_standard_max-line-length = disabled
…fails to disable the two rules in the second stanza. Moving those rules to the first stanza works. Running 0.50.0 via ktlint-gradle v11.5.0 Have tried variations on the syntax such as
dsl/**.{kt,kts}
without luck.
c
p
  • 2
  • 20
  • 631
Is Material Design 3 available for compose for desktop? I added the dependency to my build.gradle.kt...
r

Ryan Smith

over 2 years ago
Is Material Design 3 available for compose for desktop? I added the dependency to my build.gradle.kts and had a successful sync, but still get components from M2 instead of M3
r
a
  • 2
  • 7
  • 631
Hey everyone! do we have an 'ignoring' assertion which works on Collections? I want to compare two ...
s

Shervin

almost 3 years ago
Hey everyone! do we have an 'ignoring' assertion which works on Collections? I want to compare two lists, ignoring the id of their content. Imagine:
data class Person (val id: String, val name: String)
I expect sth like the following:
listOf(Person("0", "Tom")).shouldBeEqualToIgnoringFields(listOf(Person("1", "Tom")), Person::id)
do we have this? 🙏
s
e
+2
  • 4
  • 20
  • 631
Previous949596Next

kotlinlang

A modern programming language that makes developers happier.

Powered by