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)
) {
Row {
Row(verticalAlignment = Alignment.CenterVertically){
BasicTextField(
value = text,
onValueChange = onValueChange,
@@ -103,7 +103,7 @@ fun TextInputField(
painter = painterResource(id = R.drawable.rider_pro_eye),
contentDescription = "Password",
modifier = Modifier
.size(24.dp)
.size(18.dp)
.noRippleClickable {
showPassword = !showPassword
},