Tgo1014
04/29/2022, 2:13 PMdimsuz
04/29/2022, 2:52 PMLayout
check(measureables.size == 3) { "layout algorithm relies on 3 items in layout" }
val placeables = measureables.map { it.measure(constrains) }
layout(width, height) {
val topPlaceable = placeables[0]
val zoomPlaceable = placeables[1]
// VVVV crashes on the line below with
// IndexOutOfBounds(index=10, size=3)
val locationPlaceable = placeables[2]
}
Index out of bound with index 10
(sometimes 12
) which isn't anywhere in my code. Can this be due to some compose compiler plugin magic? 🤔nitrog42
04/29/2022, 3:39 PMdelay()
in a LaunchedEffect
code in replymattinger
04/29/2022, 3:51 PMrook
04/29/2022, 3:59 PMChris Fillmore
04/29/2022, 4:43 PMBackHandler
and an AlertDialog
, the BackHandler is not invoked on Back press. Is that expected?Jan
04/29/2022, 4:45 PMShakil Karim
04/30/2022, 11:51 AMhumblehacker
04/30/2022, 2:12 PMenableComposeCompilerMetrics
, what does runtime
mean? I didn't see it mentioned in the documentation I've read, only stable
and unstable
. For example:
runtime class State {
stable val text: String
runtime var CREATOR: Creator<State>
<runtime stability> = Uncertain(Creator)
}
That's for this class declaration:
data class State(
val text: String = "",
) : Parcelable {
companion object
}
S.
05/01/2022, 12:31 AMstar_zero
05/01/2022, 2:23 AMrkeazor
05/01/2022, 4:52 PMandrew
05/02/2022, 1:55 AMwintersoldier
05/02/2022, 8:42 AMChachako
05/02/2022, 10:39 AMdrawWithContent
Oleksandr Balan
05/02/2022, 10:48 AMpointerInput
so the events are passed to underlying components? See image in 🧵Tgo1014
05/02/2022, 1:55 PMVinay Gaba
05/02/2022, 3:24 PMTolga ÇAĞLAYAN
05/02/2022, 5:38 PMDaniel Okanin
05/02/2022, 5:59 PM@Stable
class PhotoViewModelItem(
val id: String?,
val title: String?,
val savedGalleries: List<String>?,
)
Chachako
05/02/2022, 8:18 PMPager
, as shown in the video, when a page is moved to the edge of the screen the image cuts out, after troubleshooting this seems to be caused by onGloballyPositioned
returning the coordinates of a second pager...nuhkoca
05/02/2022, 9:39 PMPrice
but not Name
? Now I am getting crash because key cannot be identical if I pass empty string if selected sorting is Name~Jitendra
05/03/2022, 3:15 AMildar.i [Android]
05/03/2022, 7:05 AMCommonInput
in viewModel, which gets posted to StateFlow and then converted into a @Composable fun CommonInputDisplay
in our Composable screen. CommonInput
has a value
param that gets converted to MutableState
and used in TextField
as value
.
The problem is that once it has initialized, we can’t change TextField
value
by modifying state object from ViewModel anymore. How can we initiate a recomposition with a new value from viewModel by modifying CommonInput
?gpaligot
05/03/2022, 7:54 AMdimsuz
05/03/2022, 1:34 PMButton(
modifier = Modifier.widthIn(min = 365.dp),
onClick = {}
) {
Layout({ Text("hello") }) { measureables, constraints ->
println("$constraints")
}
}
I thought that incoming constraints
would have minWidth set to 365.dp
, but they are actually minWidth=0, maxWidth=636.dp
which comes from Button
parent.
What is the correct way to layout button's content with respect to imposed min size on the button?Filip Wiesner
05/03/2022, 2:00 PMrook
05/03/2022, 2:39 PMnatario1
05/03/2022, 3:52 PMandroidx.compose.ui.platform.AndroidUiDispatcher
. Does this maybe mean that the crash happens in a compose effect? Or any other implication that could help debugging?mcpiroman
05/03/2022, 4:58 PMmcpiroman
05/03/2022, 4:58 PMThomas
05/04/2022, 10:43 PMZach Klippenstein (he/him) [MOD]
05/10/2022, 3:01 PMThomas
05/10/2022, 3:55 PMZach Klippenstein (he/him) [MOD]
05/13/2022, 2:51 PMThomas
05/13/2022, 2:53 PM