Skip to content

Commit ddd5f6b

Browse files
Animate content size of AboutEditor
1 parent e4c227c commit ddd5f6b

File tree

1 file changed

+5
-1
lines changed
  • gravatar-quickeditor/src/main/java/com/gravatar/quickeditor/ui/abouteditor

1 file changed

+5
-1
lines changed

gravatar-quickeditor/src/main/java/com/gravatar/quickeditor/ui/abouteditor/AboutEditor.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.gravatar.quickeditor.ui.abouteditor
22

3+
import androidx.compose.animation.animateContentSize
34
import androidx.compose.foundation.border
45
import androidx.compose.foundation.layout.Box
56
import androidx.compose.foundation.layout.Column
@@ -105,7 +106,10 @@ internal fun AboutEditor(
105106
}
106107

107108
Surface {
108-
Box(modifier = Modifier.wrapContentSize()) {
109+
Box(modifier = Modifier
110+
.wrapContentSize()
111+
.animateContentSize()
112+
) {
109113
AboutEditor(
110114
uiState = uiState,
111115
onEvent = { event ->

0 commit comments

Comments
 (0)