WAI
Status Update
Comments
al...@google.com <al...@google.com>
an...@google.com <an...@google.com> #2
We could add an API to make the weighted distance customizable, aosp/3271691 has more info.
Description
Jetpack Compose version: Compose Jetpack Compose component used: 1.5.0-alpha02
Probably expected behaviour, but if so not clear it's documented as intended. Also behaviour in tests isn't clear.
The intent of the code is to measure text, then based on it's size, either render that text, or instead render a second text with a different modifier if the text is too long.
Is there a way to dispose an item after measuring instead of placing? I understand this setup allows for items like LazyList.
I can work around this with clearAndSetSemantics, but what caused me to raise this report is
testPlacingOnlySecondItemWithSameName
failing on the following test, it isn't clear from the dump as it suggests it's positioned at 0,0.