louiscad
09/01/2025, 1:44 PMColumn
with the verticalScroll
modifier than can scroll (i.e. content longer than the parent):
Spacer(Modifier.weight(1f).heightIn(min = 16.dp))
Spacer(Modifier.weight(1f).requiredHeightIn(min = 16.dp))
I have found NO working workaround.
There's also an abandoned issue on YouTrack: https://youtrack.jetbrains.com/issue/CMP-4212Louis Pullen-Freilich [G]
09/01/2025, 1:55 PMlouiscad
09/01/2025, 1:55 PMlouiscad
09/01/2025, 1:56 PMlouiscad
09/01/2025, 1:59 PMlouiscad
09/01/2025, 1:59 PMLouis Pullen-Freilich [G]
09/01/2025, 2:04 PMLouis Pullen-Freilich [G]
09/01/2025, 2:04 PMlouiscad
09/01/2025, 2:10 PMweight
, starting with the smallest elements, and ignoring the minimum height to be perfectly evenly sized only once all the elements with a weight
are past it.
• When the minimum height of the content is bigger than (or equal to) the scrolling container, just respect the minimum dimensions as if there was no scrolling involved, and there's no extra space to give anyway.Csaba Szugyiczki
09/01/2025, 2:11 PMfillViewport=true
trick.louiscad
09/01/2025, 2:13 PMfillMaxHeight()
set before the verticalScroll()
on the Column
of courseZach Klippenstein (he/him) [MOD]
09/01/2025, 3:16 PMlouiscad
09/01/2025, 3:17 PMTolriq
09/01/2025, 3:18 PMlouiscad
09/01/2025, 3:18 PMBasicTextField2
happened and became the BasicTextField
replacement. Couldn't the same be done for Column
and Row
, somehow?Zach Klippenstein (he/him) [MOD]
09/01/2025, 3:18 PMlouiscad
09/01/2025, 3:19 PMBasicTextField2
?louiscad
09/01/2025, 3:21 PMZach Klippenstein (he/him) [MOD]
09/01/2025, 3:23 PMCsaba Szugyiczki
09/01/2025, 3:25 PMweight2
to solve backward compatibility (and confuse everyone) 😅louiscad
09/01/2025, 3:27 PMmin: Dp
and max: Dp
parameters for both ColumnScope
and RowScope
.Zach Klippenstein (he/him) [MOD]
09/01/2025, 3:28 PMlouiscad
09/01/2025, 3:28 PMweight()
+`heightIn(…)` / widthIn(…)
/ requiredHeightIn(…)
/ requiredWidthIn(…)
Zach Klippenstein (he/him) [MOD]
09/01/2025, 3:29 PMlouiscad
09/01/2025, 3:29 PMlouiscad
09/01/2025, 3:30 PMlouiscad
09/01/2025, 3:32 PMFlowRow
was more flexible in Accompanist than in Compose Foundation, and the Accompanist version was still made a lot harder to keep in a project 💀Zach Klippenstein (he/him) [MOD]
09/01/2025, 4:18 PMromainguy
09/01/2025, 4:57 PMromainguy
09/01/2025, 4:59 PMStylianos Gakis
09/02/2025, 6:44 AMColton Idle
09/04/2025, 3:26 PM