xetra11
11/25/2020, 2:10 PMKirill Grouchnikov
11/25/2020, 2:33 PMjim
11/25/2020, 3:44 PMxetra11
11/25/2020, 3:55 PMKirill Grouchnikov
11/25/2020, 6:31 PMKirill Grouchnikov
11/25/2020, 6:34 PMDecorationArea
composable, and that in turn "installs" (if you will) all the relevant colors on all the widgets in that area.xetra11
11/26/2020, 1:52 PMText("foo")
in it instead of just a plain stringMartin Nowosad
11/26/2020, 2:16 PMMartin Nowosad
11/26/2020, 2:17 PMAndrew Rudenko [JB]
11/26/2020, 3:39 PM() -> Unit
, but @Composable () -> Unit
. IDEA could use this information in autocomplete / quickdoc UIThomas
11/27/2020, 9:29 PMThiago
11/28/2020, 1:32 PMxetra11
11/28/2020, 8:37 PMdazza5000
11/30/2020, 12:43 AMThomas
12/01/2020, 4:47 PM@Composable
fun ThirdRow(currentPos: Int, checksums: List<String>, selected: SnapshotStateMap<Int, Boolean>) {
val items = if (checksums.isNotEmpty())
df.getFiles(checksums[currentPos]) else emptyList()
LazyColumnForIndexed(items,
modifier = Modifier.fillMaxSize().padding(8.dp),
itemContent = { index, item ->
val current = selected[index] ?: false
ListItem(secondaryText = { Text(item.parent) },
modifier = Modifier.toggleable(onValueChange = {
selected[index] = !current
},
value = current)
.background(if (current)
Color.LightGray else Color.Transparent),
text = { Text(item.name) })
})
}
Works great. But still pondering if there isn't more builtin support in Compose... Again, thank you very much for helping with this one...Thomas
12/01/2020, 7:05 PMJavier
12/02/2020, 4:30 PMKarthick
12/02/2020, 4:32 PMKirill Grouchnikov
12/02/2020, 5:00 PMKirill Grouchnikov
12/02/2020, 7:19 PMKirill Grouchnikov
12/02/2020, 8:21 PMspierce7
12/03/2020, 5:46 AM0.2.0-build132
?Kirill Grouchnikov
12/03/2020, 10:55 PMjim
12/03/2020, 11:11 PMjim
12/03/2020, 11:12 PMaltavir
12/04/2020, 7:51 AMjim
12/07/2020, 6:42 AMThomas
12/07/2020, 7:53 AMThomas
12/08/2020, 8:35 AMThiago
12/09/2020, 12:38 AMOffset.Zero
vs
Offset(0f, 2f)