Eko Prasetyo
05/15/2022, 2:10 PMMjahangiry75
05/15/2022, 5:32 PM@ReadOnlyComposable
?eygraber
05/15/2022, 11:36 PMThe result of a applying a mutable snapshot. Success indicates that the snapshot was successfully applied and is not visible as the global state of the state object
Should it say
and is now visible as the global state of the state object
xxfast
05/16/2022, 1:44 AManimateColorBetween()
only available in compose >1.2?Colton Idle
05/16/2022, 6:10 AMIuhas Cezar
05/16/2022, 7:49 AMval textState = remember { mutableStateOf(costTextValue)}
but the value appears to be empty. If i print the value in log it shows correctly, but in my variable it's empty.Виталий Перятин
05/16/2022, 9:08 AMsetContent {}
, the leaks disappear, but I can't work with Compose without this function.
Can you tell me what is causing the leaks? How can they be fixed?
All useful info attached to the post.nuhkoca
05/16/2022, 10:40 AMonSortingSheetStateChanged(SortSheetState.Dismissed)
to be triggered for that case but only if user presses back button or touches outside. BTW is there any better way to handle these cases?
if (sortingBottomSheetState.currentValue != ModalBottomSheetValue.Hidden) {
DisposableEffect(Unit) {
onSortingSheetStateChanged(SortSheetState.Shown)
onDispose {
onSortingSheetStateChanged(SortSheetState.Dismissed)
}
}
}
Dragos Rachieru
05/16/2022, 11:35 AMByteArray
using ktor and then creates an image using Image.makeFromEncoded
. I have to resize the result, but I don't know if I can do this using `compose`/`skiko`ninadmg
05/16/2022, 11:41 AM```* [graphicsLayer] can be used to apply effects to content, such as scaling, rotation, opacity,
* shadow, and clipping.
* Prefer this version when you have layer properties backed by a
* [androidx.compose.runtime.State] or an animated value as reading a state inside [block] will
* only cause the layer properties update without triggering recomposition and relayout.```This is the documentation of graphics layer. From this it looks like i can make changes to the graphics layer without recomposing the parent composable. But how to I collect a state in the graphics layer as it is not a composable? If i collect a state in the parents then it will recompose the parent.
Tolriq
05/16/2022, 2:08 PMDan Peluso
05/16/2022, 2:56 PMButton(
colors = ButtonDefaults.buttonColors(
backgroundColor = Colors.White10
),
modifier = Modifier
.clip(RoundedCornerShape(.5.radiusDp))
) { // a single text in the button with only text color declared
Roberto Leinardi
05/16/2022, 3:52 PMAbhinav Suthar
05/16/2022, 4:31 PMNat Strangerweather
05/16/2022, 5:42 PMtrevjones
05/16/2022, 6:02 PMChris Fillmore
05/16/2022, 6:50 PMJoel Morales
05/16/2022, 8:57 PMMehdi Haghgoo
05/17/2022, 4:27 AMRekha
05/17/2022, 5:40 AMArjan van Wieringen
05/17/2022, 7:01 AMMain.kt
it starts with:
val content = remember {
ContentState.applyContent(
state,
"<https://raw.githubusercontent.com/JetBrains/compose-jb/master/artwork/imageviewerrepo/fetching.list>"
)
}
Content then contains a function isAppReady
which is this:
private val isAppReady = mutableStateOf(false)
fun isAppReady(): Boolean {
return isAppReady.value
}
Does Compose keep track of the nested (isAppReady) observable via the function call? I was a bit confused, because I thought I had to read the values of states directly inside a composable, but apparently I can place it behind a function as well?julioromano
05/17/2022, 8:45 AMPaddingValues
instance?
E.g. say I want to apply some additional padding on top of the one passed in as the receiver in the Scaffold
content lambda: how to?Aaron Waller
05/17/2022, 10:34 AMLucas Mo
05/17/2022, 12:06 PMCarl Benson
05/17/2022, 1:27 PMadjustPan
behaviour no matter what setting I have in my manifest. Also window insets will have no effect on the content. They do seem to affect things if it is a non-dialog. Is there anyone who has seen something similar or can maybe explain what is needed to resize a compose dialog with IME paddingsChris Fillmore
05/17/2022, 2:31 PMderivedStateOf
? (In a VM)allan.conda
05/17/2022, 3:27 PMChris Fillmore
05/17/2022, 5:21 PMLawrence
05/17/2022, 7:57 PMMehdi Haghgoo
05/18/2022, 7:15 AMwith(LocalDensity.current){sizeDp.toPx()}
really do?Mehdi Haghgoo
05/18/2022, 7:15 AMwith(LocalDensity.current){sizeDp.toPx()}
really do?Filip Wiesner
05/18/2022, 7:18 AMMehdi Haghgoo
05/18/2022, 7:36 AMwith(){}
?Filip Wiesner
05/18/2022, 7:42 AMDensity
context (this is Density
) to access this conversion extension function. You could also do LocalDensity.current.run { sizeDp.toPx() }
Density
interface so it has two receivers (contexts). One is Density
and one is Dp
defined on the function