flattening box layer
This commit is contained in:
parent
d03cadb3b7
commit
94a05898c8
|
@ -651,9 +651,8 @@ private fun TextComposer(state: ComposerState.Text, onTextChange: (String) -> Un
|
||||||
.background(SmallTalkTheme.extendedColors.othersBubble, RoundedCornerShape(24.dp)),
|
.background(SmallTalkTheme.extendedColors.othersBubble, RoundedCornerShape(24.dp)),
|
||||||
contentAlignment = Alignment.TopStart,
|
contentAlignment = Alignment.TopStart,
|
||||||
) {
|
) {
|
||||||
Box(Modifier.padding(14.dp)) {
|
|
||||||
BasicTextField(
|
BasicTextField(
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth().padding(14.dp),
|
||||||
value = state.value,
|
value = state.value,
|
||||||
onValueChange = { onTextChange(it) },
|
onValueChange = { onTextChange(it) },
|
||||||
cursorBrush = SolidColor(MaterialTheme.colorScheme.primary),
|
cursorBrush = SolidColor(MaterialTheme.colorScheme.primary),
|
||||||
|
@ -677,7 +676,6 @@ private fun TextComposer(state: ComposerState.Text, onTextChange: (String) -> Un
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Spacer(modifier = Modifier.width(6.dp))
|
Spacer(modifier = Modifier.width(6.dp))
|
||||||
var size by remember { mutableStateOf(IntSize(0, 0)) }
|
var size by remember { mutableStateOf(IntSize(0, 0)) }
|
||||||
val enabled = state.value.isNotEmpty()
|
val enabled = state.value.isNotEmpty()
|
||||||
|
|
Loading…
Reference in New Issue