Skip to content

Commit

Permalink
Stashing my commits
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigosouzalopes94 committed Oct 9, 2024
1 parent 3604710 commit 08cc8ed
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ fun MfOutlinedTextField(
)
}


@Composable
fun MfPasswordTextField(
password: String,
Expand Down Expand Up @@ -146,14 +145,14 @@ fun MfPasswordTextField(
modifier = Modifier
.fillMaxWidth()
.background(Color.Transparent),
contentAlignment = Alignment.CenterStart
contentAlignment = Alignment.CenterStart,
) {
innerTextField()

IconButton(
onClick = onTogglePasswordVisibility,
modifier = Modifier.align(Alignment.CenterEnd))
{
modifier = Modifier.align(Alignment.CenterEnd),
) {
Icon(
if (isPasswordVisible) Icons.Filled.Visibility else Icons.Filled.VisibilityOff,
contentDescription = "Toggle password visibility",
Expand All @@ -173,7 +172,7 @@ fun MfPasswordTextField(
text = errorMessage,
color = MaterialTheme.colorScheme.error,
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.padding(top = 4.dp)
modifier = Modifier.padding(top = 4.dp),
)
}
}
Expand Down

0 comments on commit 08cc8ed

Please sign in to comment.