Hi all. I'll preface this by saying i'm not really sure if this fits into compose, or even kotlin as a whole, but it's an issue that i'm encountering because we're using compose mixed with other native view components.
Basically, what we're trying to do is create our own "toast" type component, but with it's own visuals and behavior (it doesn't follow the same behavior and visuals as toast does so it doesn't make sense to try to fit it into the toast system). As you can see in the image below it overlays the content, but i want to make sure there's a way to guarantee that all the content under it is able to seen or interacted with.
My thoughts immediately went to insets and seeing if there was a way I could read an inset based on the current height of the toast, and apply internal bottom padding to the container behind the component. I'm wondering if there's any good way to create my own type of insets accessible from both native views and compose, and recognize when the toast changes height and adjust accordingly. The documentation suggests I can't create a new WindowInsets.Type but i'm wondering if there's some other approach