Jonathan
06/30/2025, 9:25 PMComposables inside of a custom Layout {} ?
I would like to animate the relative positions of child Composable in my custom Scaffold Composable based the offset of an AnchoredDragState. Essentially, I would like to slide my nav bar “out of the way” when a sibling Composable is dragged.
I’ve got a POF working using a Box the Modifier.offset { ... } on my child Composables and hardcoded sizes. I would like to be able to wrap this logic up in a custom Layout and not have to rely on individual offset modifiers and hardcoded sizes. Previously, I tried building this by accessing the offset of a AnchoredDraggableState but dragging became erratic.
If anyone has any experience with this, any advice would be appreciated.shikasd
07/01/2025, 12:49 AMJonathan
07/01/2025, 3:49 AMLayout composable and see if I have better luck. I think my previous attempted I accessed the AnchoredDragState.offset outside of the layout {} block, during the measurement phase.