rsktash
08/26/2021, 8:35 AMrcd27
08/26/2021, 1:08 PMnet
, trying to subscribe to it from @Composable
, but it seems to cancel the subscription coroutine, so connection is lost. I've tried with LaunchEffect(Unit)
but no differences:
var itemsListState by remember { mutableStateOf<List<LootItemViewObject>>(emptyList()) }
val scope = rememberCoroutineScope()
scope.launch {
suggestedItemsRepository
.subscribeForItem(qrCode)
.collect {
itemsListState = it
}
}
I think, I've missed one vital concept of recomposing, can you please help?
This code is placed in @Composable
which renders LazyColumn
of those items. (it is later somehing like LazyColumn { itemsListState.forEach { item { ...} } }
darkmoon_uk
08/27/2021, 1:14 PM@Preview
's, that means Android previews only show:
The following classes could not be found:
- androidx.compose.ui.tooling.preview.ComposeViewAdapter
This bug originally affected Arctic Fox users for pure Android Dev; and could be resolved by forcing Gradle to resolve an older -beta09
version of the ui-tooling
dependency; however with JB's Multiplatform Compose, I can't get anything to work (including forcing by resolution strategy), the result is always duplicate class errors since both the JB and Android artifact end up somehow being included.
I'm assuming the only practical resolution is to wait for the upstream fix to be merged-in, has anyone else worked around it?Kirill Grouchnikov
08/27/2021, 5:10 PMKirill Grouchnikov
08/27/2021, 6:28 PMspierce7
08/27/2021, 8:31 PMKirill Grouchnikov
08/27/2021, 9:01 PMdarkmoon_uk
08/28/2021, 11:04 AM@Preview
. I'm a bit confused why there isn't more noise regarding it, because it means one of: a) nobody's using JB Compose to even notice (don't want to believe this one) or b) there's a workaround that I've missed or c) Devs are generally more patient than me and just quietly waiting until it works again ☺️?sonder-joker
08/29/2021, 7:46 AMrsktash
08/29/2021, 7:23 PMPHondogo
08/31/2021, 7:59 AMRémy
08/31/2021, 4:19 PMChristian Babsek
08/31/2021, 4:41 PMspierce7
08/31/2021, 9:41 PMCicero
09/01/2021, 8:02 AMFrank
09/01/2021, 9:42 AMplugins {
val kotlinVersion = "1.5.21"
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion
id("org.jetbrains.compose") version "0.5.0-build262"
}
But the @Preview - Annotation is not found anymore.
How can I solve this?Frank
09/01/2021, 10:08 AMid("org.jetbrains.compose") version "1.0.0-alpha3"
but the problem persists.rnett
09/02/2021, 5:13 AMHorizontalSplitPane
, but getting Cannot coerce value to an empty range: maximum 784.0 is less than minimum 794.0.
exceptions if I set an minimum size for both first
and second
.darkmoon_uk
09/02/2021, 6:49 AM4.x.0
AGP version - is that what we're 'supposed' to be using for CfD!? Maybe that's partly where I've been going wrong.darkmoon_uk
09/02/2021, 6:53 AMAyfri
09/02/2021, 11:55 AMJavier
09/02/2021, 12:44 PMCannot find libskiko-macos-x64.dylib.sha256
Anyone is getting it too? with alpha4 from 310 to 331Ayfri
09/02/2021, 5:11 PMchannel
class which has a message
property which is a MutableMap<Long, Message>
then I show the list of the messages using the LazyColumn, for that I have no problem. But when I create my channel
, I add to it 20 messages by doing this
for (i in 0..20) {
channel.messages.put(i, Message("test $i"))
}
But in result I get 2-3 messages only, and the numbers are random, sometimes it's 0, 5 and 14, sometimes 5 and 20, and it's very weird and I can't find a way to make it working, what am I doing wrong ?
I'm using the 1.0.0-alpha4-build331 version.Kirill Grouchnikov
09/02/2021, 6:28 PMSiva Nimmala
09/03/2021, 7:28 AMAyfri
09/05/2021, 11:40 AMRow
I have two boxes, is there a way to set the second box to the right side of the screen while keeping the first in the left side ?Ayfri
09/05/2021, 4:04 PMRow
, how can I set a required width for the second element, but have the first element just have a minimum size but take the maximum size available without overlapping the second element ?Javier
09/06/2021, 11:01 AMtheapache64
09/06/2021, 7:07 PMrunDistributable
. How do I get the crashlog in this case?Ayfri
09/06/2021, 7:28 PMresources
folder I have a folder named languages
with inside a kotlin.json
file, but when I do ""::class.java.getResource("languages/kotlin.json")
I get null
, why does it occurs ?Ayfri
09/06/2021, 7:28 PMresources
folder I have a folder named languages
with inside a kotlin.json
file, but when I do ""::class.java.getResource("languages/kotlin.json")
I get null
, why does it occurs ?theapache64
09/06/2021, 7:31 PM.java.*classLoader*.getResource
?Ayfri
09/06/2021, 7:34 PMException in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.lang.ClassLoader.getResource(String)" because the return value of "java.lang.Class.getClassLoader()" is null
at MainKt$App$1.invoke(Main.kt:22)
ephemient
09/06/2021, 8:00 PM""
try one of your own classes. String
is from the bootstrap classloaderAyfri
09/06/2021, 8:02 PM