flattening box layer

This commit is contained in:
Adam Brown 2022-09-30 16:46:19 +01:00
parent d03cadb3b7
commit 94a05898c8
1 changed files with 20 additions and 22 deletions

View File

@ -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()