How do I make a composable opaque? The composable ...
# compose
w
How do I make a composable opaque? The composable doesn;t consume click events but the underlying composable can consume the events when they are in a box. For example in a flutter app, we can use IgnorePointer on a widget to make it opaque. Looking for something similar in jetpack compose.
r
Opaque visually? Or to consume touch events before the children?
w
Not visually, I meant the clicks should pass through that composable to the composable under it.
The first item in the body is spacer, under the spacer we can see header. The spacer should allow clicks to pass to header. Probably I can use mutable interaction source any better way of doing it?
r
Why isn't the header above the body to solve this?
w
🤣 why did I miss it!
I need a break probably, Thanks for pointing it out.
a
I’m looking for this solution but I can’t move my views to consume the click because of some complex design requirement. I want my button to consume click