Skip to content

Commit

Permalink
ktlint
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Aug 13, 2024
1 parent 7cb74ab commit 8440b23
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement.Absolute.spacedBy
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material.icons.filled.KeyboardArrowUp
Expand Down Expand Up @@ -138,18 +135,18 @@ fun <T> ExpandableItemColumn(
}
}

LazyColumn (
LazyColumn(
modifier = modifier
.onSizeChanged {
if (parentSize == -1) {
parentSize = it.height
}
},
verticalArrangement = spacedBy(itemSpacing),
contentPadding = PaddingValues(Spacing16)
contentPadding = PaddingValues(Spacing16),
) {
itemList.forEachIndexed { index, item ->
item{
item {
itemLayout(item, itemVerticalPadding) {
val childMap = childrenSize.toMutableMap()
childMap[index] = it.height
Expand Down

0 comments on commit 8440b23

Please sign in to comment.