Zach
10/25/2022, 6:17 PMLazyColumn without just setting the ScreenHeight to some arbitrarily large number? I have attempted to use V_SCROLL and FULL_EXPAND and neither seem to change anything. Additionally, the list it is rendering is immutable.Zach
10/25/2022, 6:21 PM@Composable
private fun TestTypePreview() {
LazyColumn(
modifier = Modifier
.padding(vertical = 4.dp)
.testTag(TYPE_PREVIEW_LIST_TAG)
) {
items(items = textStyleList) { pair ->
TestTextSample(name = pair.first, textStyle = pair.second)
}
}
}
@Composable
private fun TestTextSample(name: String, sample: String, textStyle: TextStyle) {
Row {
Text(name, style = textStyle, color = MaterialTheme.colors.secondary, modifier = Modifier.padding(end = 12.dp))
Text(sample, style = textStyle, color = MaterialTheme.colors.secondary)
}
}yschimke
10/26/2022, 3:55 AM