Is it possible for a Composable to have its size modifier recomposed, but say a gesture modifier on the same Composable not?
🙌 1
p
Piotr Prus
04/16/2021, 7:08 AM
AFAIK, it is possible. You need to extract the gesture modifier and pass it as a function parameter to your child composable. Somethink like:
UserCard(Modifier.pointerInput())
UserCard(modifier: Modifier = Modifier) {
Column(modifier = modifier.size().background())
}