mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
refactor: remove child interactionSource in TextField
This commit is contained in:
@@ -321,8 +321,7 @@ fun PasswordTextField(
|
|||||||
passwordVisible = it
|
passwordVisible = it
|
||||||
focusRequester.requestFocus()
|
focusRequester.requestFocus()
|
||||||
},
|
},
|
||||||
enabled = enabled,
|
enabled = enabled
|
||||||
interactionSource = interactionSource
|
|
||||||
) { Icon(imageVector = if (passwordVisible) Icons.ViewerOpen else Icons.ViewerClose) }
|
) { Icon(imageVector = if (passwordVisible) Icons.ViewerOpen else Icons.ViewerClose) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -436,8 +435,7 @@ fun BackspaceTextField(
|
|||||||
},
|
},
|
||||||
modifier = Modifier.width(animatedSize).pointerHoverState(TextFieldPointerState.NORMAL),
|
modifier = Modifier.width(animatedSize).pointerHoverState(TextFieldPointerState.NORMAL),
|
||||||
style = IconButton.style.copy(padding = DefaultDecorIconPadding),
|
style = IconButton.style.copy(padding = DefaultDecorIconPadding),
|
||||||
enabled = enabled,
|
enabled = enabled
|
||||||
interactionSource = interactionSource
|
|
||||||
) { Icon(imageVector = Icons.Backspace) }
|
) { Icon(imageVector = Icons.Backspace) }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user