When I scroll down, the Box is out of the screen, but not enough for it to be disposed. How can I tell that the Box is out of the screen or not without using LazyListState? (So something that works even when the LazyColumn is replaced by a scrollable Column).
f
Felix Schütz
09/19/2021, 3:57 PM
Did you try using the
.onGloballyPositioned
modifier?
e
eneim
09/19/2021, 4:13 PM
@Felix Schütz I did but the callback is not called after the item is off-screened. And there is no signal about the timing of it becomeing off-screen.
f
Felix Schütz
09/19/2021, 5:50 PM
Well at least it tells you whether ist nearly out of screen 😄 🙈