mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
style: rename field in TextField
This commit is contained in:
@@ -221,8 +221,8 @@ private fun TextFieldDecorationBox(
|
||||
placeholder: @Composable () -> Unit,
|
||||
innerTextField: @Composable () -> Unit
|
||||
) {
|
||||
val animatedPlaceholder by animateFloatAsState(if (value.isNotEmpty()) 0f else 1f)
|
||||
Box(modifier = Modifier.alpha(animatedPlaceholder)) {
|
||||
val animatedAlpha by animateFloatAsState(if (value.isNotEmpty()) 0f else 1f)
|
||||
Box(modifier = Modifier.alpha(animatedAlpha)) {
|
||||
CompositionLocalProvider(
|
||||
LocalTextStyle provides LocalTextStyle.current.default(LocalColors.current.textSecondary)
|
||||
) { placeholder() }
|
||||
|
Reference in New Issue
Block a user