Thread
#compose
    s

    Socheat KHAUV

    2 years ago
    ContextAmbient.current is not available, is there alternative way to get current Context ?
    l

    Leland Richardson [G]

    2 years ago
    what do you mean its not available?
    s

    Socheat KHAUV

    2 years ago
    k

    Kazemihabib1996

    2 years ago
    @Socheat KHAUV Does building the project throws the same error? It might be the problem of kotlin plugin.
    s

    Socheat KHAUV

    2 years ago
    l

    Leland Richardson [G]

    2 years ago
    does this happen for all ambients? for example,
    DensityAmbient
    ?
    v

    Val Salamakha

    2 years ago
    It seems to me it var(val) context = ContextAmbient.current works fine. To understand an error, it is better to write OS details, AS details, Kotlin plugin details, Compose version.
    s

    Socheat KHAUV

    2 years ago
    @Val Salamakha , yeah you are right. my project is dev-03, i update to dev-11, it works (Y)