Radoslaw Juszczyk
03/09/2021, 7:35 PMSurface
?
I have tried:
Surface(modifier=Modifier.clickable(indication=….))
but indication
is not resolved
what is the correct way to do that?Dan Peluso
03/09/2021, 8:13 PMFrancois Morvillier
03/09/2021, 8:16 PMTiago Taraczuk
03/09/2021, 9:58 PMText
have some padding top
by default. Anyone knows how to remove it?alexandrepiveteau
03/09/2021, 10:08 PMfun interface
?maciejciemiega
03/09/2021, 10:31 PMMehmet Peker
03/09/2021, 10:45 PMbohregard
03/10/2021, 12:23 AMonGloballyPositioned
supposed to be called more than once after a layout? Or is supposed to only be called once it’s positioned?
I ask because I have a composable that is constantly calling onGloballyPositioned
despite not moving or recomposing (at least to my knowledge).Tim Malseed
03/10/2021, 12:43 AMtherealbluepandabear
03/10/2021, 1:27 AMColton Idle
03/10/2021, 1:48 AMDan Peluso
03/10/2021, 2:36 AMsubscribeAsState()
, is there a way to unsubscribe from that? Code in threadbohregard
03/10/2021, 3:17 AMSlackbot
03/10/2021, 4:10 AMeygraber
03/10/2021, 6:33 AMJason Ankers
03/10/2021, 7:47 AMRow
wrap its content, but have a max width of half its parent?allan.conda
03/10/2021, 7:50 AMTin Tran
03/10/2021, 8:44 AMitem{}
works in LazyColumn? I’m having a weird issue with it
If i have 2 item
block inside a LazyColumn when i scroll pass the all the elements in the first item block and scroll back to it, all the composable in the first item block got recomposed even if the data haven’t changed.Damien
03/10/2021, 9:00 AMNathan Castlehow
03/10/2021, 9:11 AMDeepak Gahlot
03/10/2021, 10:21 AMjava.lang.IllegalStateException: Nesting scrollable in the same direction layouts like ScrollableContainer and LazyColumn is not allowed.
Marko Novakovic
03/10/2021, 12:01 PMNavigationComponenet
and BottomNavigation
I have a problem with tabs being selected (code in thread)Orhan Tozan
03/10/2021, 1:45 PMCircularProgressIndicator()
eygraber
03/10/2021, 2:06 PMmartinsumera
03/10/2021, 2:36 PMSlackbot
03/10/2021, 2:57 PMMahdi Safarmohammadloo
03/10/2021, 3:59 PMclass Core {
val texts:MutableList<String> = mutableListOf("Salam !","Hello World !")
fun add (text:String):Core{
texts.add(text)
return this
}
}
fun main() = Window {
var core by remember { mutableStateOf(Core()) }
MaterialTheme {
Button(onClick = {
core = core.add("salam ! salam !")
}) {
Column {
core.texts.map {
Text (it)
}
} } }
}
Shakil Karim
03/10/2021, 4:34 PMDeepak Gahlot
03/10/2021, 4:41 PMDavid Edwards
03/10/2021, 4:58 PMLaunchedEffect(true) {
while (isActive) {
delay(60000L)
vm.getData()
}
}
Is there a better pattern to use in this case?David Edwards
03/10/2021, 4:58 PMLaunchedEffect(true) {
while (isActive) {
delay(60000L)
vm.getData()
}
}
Is there a better pattern to use in this case?Adam Powell
03/10/2021, 5:24 PMandroidx:lifecycle:lifecycle-ktx
that will look more like:
LaunchedEffect(true) {
repeatOnLifecycle(Lifecycle.State.STARTED) {
while (true) {
delay(...)
vm.getData()
}
}
}
David Edwards
03/10/2021, 5:25 PMAdam Powell
04/20/2021, 4:45 PMDavid Edwards
04/20/2021, 4:53 PM2.4.0-alpha01
. I didn't notice a new alpha version.