andrew

    andrew

    2 years ago
    With jetpack compose, how do we access things like view insets, context, etc?
    Adam Bennett

    Adam Bennett

    2 years ago
    Looking at the tutorial, it looks like you can get a reference to
    Context
    like so:
    val context = +ambient(ContextAmbient)
    andrew

    andrew

    2 years ago
    Ah, that’s kinda neat
    Adam Powell

    Adam Powell

    2 years ago
    We still need to wire up some more things to the host view to make working with the insets nicer
    andrew

    andrew

    2 years ago
    I suppose that would need to be added into the AndroidComposeView itself, maybe with a similar api to how you’d access context
    Adam Powell

    Adam Powell

    2 years ago
    Kind of, though I'd like to consider the whole insets situation a little more thoroughly too and look at improving that API UX along the way