Travis Griggs
03/14/2023, 6:27 PMColumn {
var scrollState = rememberScrollState()
OutlinedTextField(
value = Globals.diagnosticsExample,
onValueChange = { _ -> },
modifier = Modifier
.fillMaxWidth()
.verticalScroll(scrollState)
.weight(1f),
readOnly = true,
textStyle = TextStyle(fontSize = 10.sp)
)
Button(
onClick = {},
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 16.dp),
colors = ButtonDefaults.buttonColors(containerColor = AccentBlue)
) {
Text(text = "Share")
}
}
ephemient
03/14/2023, 6:41 PMModifier.verticalScroll()
on it?Travis Griggs
03/14/2023, 6:43 PMephemient
03/14/2023, 6:46 PMTravis Griggs
03/14/2023, 6:48 PMephemient
03/14/2023, 6:55 PMTravis Griggs
03/14/2023, 6:57 PMBox(modifier = Modifier.fillMaxWidth()) {
IconButton(onClick = dismissClick, modifier = Modifier.align(Alignment.CenterStart)) {
Icon(
Icons.Default.ArrowBack,
contentDescription = "Exit Diagnostics",
tint = AccentBlue
)
}
And I get that it forces the 48x48 touchable target size. And that's fine and appreciated even. What I want though, is the left edge of the arrow to visually line up with the left edges of the outlined text box and the button at the bottom