@Composable
fun SomeTextField(
label: String,
) {
TextField(
label = {
Text( // text label here
text = label
)
}
)
Text("Here is an error text") // align this to start where the text label starts
}
🤔
l
Luke
07/06/2022, 2:50 PM
I'm really not sure it would work but with a ConstraintLayout maybe? I'm not sure you can add constraints to composables not directly in the layout (like label here) but it's worth investigating
g
galex
07/06/2022, 2:51 PM
Right, I'll try!
c
Colton Idle
07/06/2022, 4:01 PM
When I'm back at my desk I can check how I did this from the samples.