|
@@ -91,8 +91,11 @@ fun LoginContent() {
|
|
|
trailingIcon = {
|
|
|
if (username.isNotBlank()) {
|
|
|
IconButton(
|
|
|
- onClick = { username = "" },
|
|
|
- enabled = username.isNotEmpty()
|
|
|
+ onClick = {
|
|
|
+ username = ""
|
|
|
+ isLoginBtnEnable = username.isNotEmpty() && password.isNotEmpty()
|
|
|
+ },
|
|
|
+ enabled = username.isNotEmpty(),
|
|
|
) {
|
|
|
Icon(
|
|
|
painter = painterResource(R.drawable.login_delete),
|
|
@@ -165,6 +168,7 @@ fun LoginContent() {
|
|
|
onClick = {
|
|
|
password = ""
|
|
|
isShowPassword = false
|
|
|
+ isLoginBtnEnable = username.isNotEmpty() && password.isNotEmpty()
|
|
|
},
|
|
|
enabled = password.isNotEmpty()
|
|
|
) {
|
|
@@ -219,7 +223,7 @@ fun LoginContent() {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
- Spacer(modifier = Modifier.fillMaxWidth().height(16.dp))
|
|
|
+ Spacer(modifier = Modifier.fillMaxWidth().height(24.dp))
|
|
|
|
|
|
SnackbarHost(
|
|
|
hostState = snackbarHostState
|