|
@@ -59,7 +59,6 @@ fun Chat(
|
|
Column(
|
|
Column(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.fillMaxSize()
|
|
.fillMaxSize()
|
|
- .background(color = MaterialTheme.colorScheme.surfaceContainer)
|
|
|
|
.consumeWindowInsets(contentPadding)
|
|
.consumeWindowInsets(contentPadding)
|
|
.imePadding()
|
|
.imePadding()
|
|
.imeNestedScroll()
|
|
.imeNestedScroll()
|
|
@@ -68,7 +67,6 @@ fun Chat(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.weight(1f),
|
|
.weight(1f),
|
|
state = state,
|
|
state = state,
|
|
-// contentPadding = contentPadding,
|
|
|
|
reverseLayout = true
|
|
reverseLayout = true
|
|
) {
|
|
) {
|
|
list?.let { l ->
|
|
list?.let { l ->
|
|
@@ -112,7 +110,8 @@ fun Chat(
|
|
.graphicsLayer {
|
|
.graphicsLayer {
|
|
shape = CircleShape
|
|
shape = CircleShape
|
|
clip = true
|
|
clip = true
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ .padding(4.dp),
|
|
value = textInput,
|
|
value = textInput,
|
|
onValueChange = { textInput = it },
|
|
onValueChange = { textInput = it },
|
|
label = null,
|
|
label = null,
|
|
@@ -129,7 +128,7 @@ fun Chat(
|
|
shape = RoundedCornerShape(16.dp)
|
|
shape = RoundedCornerShape(16.dp)
|
|
clip = true
|
|
clip = true
|
|
}
|
|
}
|
|
- .background(MaterialTheme.colorScheme.surface),
|
|
|
|
|
|
+ .background(MaterialTheme.colorScheme.surfaceContainer),
|
|
onAttachment = { list ->
|
|
onAttachment = { list ->
|
|
attachments.addAll(list)
|
|
attachments.addAll(list)
|
|
val items = list.map {
|
|
val items = list.map {
|
|
@@ -187,9 +186,9 @@ fun Chat(
|
|
}
|
|
}
|
|
},
|
|
},
|
|
colors = TextFieldDefaults.colors(
|
|
colors = TextFieldDefaults.colors(
|
|
- focusedContainerColor = MaterialTheme.colorScheme.surface,
|
|
|
|
- unfocusedContainerColor = MaterialTheme.colorScheme.surface,
|
|
|
|
- disabledContainerColor = MaterialTheme.colorScheme.surface,
|
|
|
|
|
|
+ focusedContainerColor = MaterialTheme.colorScheme.surfaceContainer,
|
|
|
|
+ unfocusedContainerColor = MaterialTheme.colorScheme.surfaceContainer,
|
|
|
|
+ disabledContainerColor = MaterialTheme.colorScheme.surfaceContainer,
|
|
focusedIndicatorColor = Color.Transparent,
|
|
focusedIndicatorColor = Color.Transparent,
|
|
unfocusedIndicatorColor = Color.Transparent,
|
|
unfocusedIndicatorColor = Color.Transparent,
|
|
disabledIndicatorColor = Color.Transparent,
|
|
disabledIndicatorColor = Color.Transparent,
|