TextField图标文字对齐(password)

This commit is contained in:
2024-10-25 02:49:04 +08:00
parent 684078515f
commit c183c2fb9d

View File

@@ -76,7 +76,7 @@ fun TextInputField(
) )
.padding(horizontal = 16.dp, vertical = 16.dp) .padding(horizontal = 16.dp, vertical = 16.dp)
) { ) {
Row { Row(verticalAlignment = Alignment.CenterVertically){
BasicTextField( BasicTextField(
value = text, value = text,
onValueChange = onValueChange, onValueChange = onValueChange,
@@ -103,7 +103,7 @@ fun TextInputField(
painter = painterResource(id = R.drawable.rider_pro_eye), painter = painterResource(id = R.drawable.rider_pro_eye),
contentDescription = "Password", contentDescription = "Password",
modifier = Modifier modifier = Modifier
.size(24.dp) .size(18.dp)
.noRippleClickable { .noRippleClickable {
showPassword = !showPassword showPassword = !showPassword
}, },