Colton Idle
03/03/2025, 11:03 PMj
in my BasicTextField from being cut off? If you look closely, the jj
has the starting part of the j that gets cutoff. Adjusting padding doesn't seem to fix it.Colton Idle
03/03/2025, 11:05 PMColton Idle
03/03/2025, 11:05 PMColton Idle
03/03/2025, 11:06 PM@Composable
fun EmailInputField() {
var text by remember { mutableStateOf("") }
BasicTextField(
value = text,
onValueChange = { text = it },
textStyle = TextStyle(color = Color.Black),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 24.dp)
.padding(vertical = 2.dp)
.background(Color.White)
.padding(12.dp),
decorationBox = { innerTextField ->
Box(
modifier = Modifier.fillMaxWidth()
) {
if (text.isEmpty()) {
Text(
text = "Enter your email",
color = Color.Gray
)
}
innerTextField()
}
}
)
}
Colton Idle
03/03/2025, 11:21 PM@Composable
fun EmailInputField() {
var text by remember { mutableStateOf("") }
BasicTextField(
value = text,
onValueChange = { text = it },
textStyle = TextStyle(color = Color.Black),
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 24.dp)
.padding(vertical = 2.dp)
.background(Color.White)
.padding(12.dp)
.border(1.dp, Color.Green)
.padding(12.dp)
,
decorationBox = { innerTextField ->
Box(
modifier = Modifier.fillMaxWidth()
) {
if (text.isEmpty()) {
Text(
modifier = Modifier.border(1.dp, Color.Blue),
text = "Enter your email",
color = Color.Gray
)
}
innerTextField()
}
}
)
}
Anastasia [G]
03/04/2025, 9:31 AMTextFieldState
override too?Colton Idle
03/04/2025, 1:44 PMhugo
03/04/2025, 9:56 PMhugo
03/04/2025, 10:03 PMColton Idle
03/04/2025, 11:25 PMhugo
03/04/2025, 11:39 PMhugo
03/05/2025, 9:28 AMhugo
03/05/2025, 9:51 AMColton Idle
03/05/2025, 1:07 PMAnastasia [G]
03/06/2025, 11:55 AMColton Idle
03/06/2025, 5:56 PM