Sunil Kumar
05/10/2024, 8:43 AMNatasha Jordanovska
05/10/2024, 9:10 AMonGloballyPositioned
to get the global position of each item inside a LazyColumn
is technically feasible, but it can lead to performance issues, especially with a dynamic and potentially large list. Each recomposition of an item in the list will trigger the onGloballyPositioned
callback, which can be inefficient if the list updates frequently or contains many items.Sunil Kumar
05/10/2024, 9:17 AMNatasha Jordanovska
05/10/2024, 9:30 AMModifier.pointerInput
in combination with detectTapGestures
for handling long presses directly.Natasha Jordanovska
05/10/2024, 9:32 AMSunil Kumar
05/10/2024, 9:39 AMSunil Kumar
05/10/2024, 10:02 AMNatasha Jordanovska
05/10/2024, 10:10 AMLocalView.current
in the parent composable that contains your list and pass it to Each Child (ListItem)Sunil Kumar
05/10/2024, 10:21 AM