Akram Bensalem

    Akram Bensalem

    1 year ago
    Hi, I integrate Google Map in one of Compose Screen but it's freeze for a bit of time, Is there any solution to prevent blocking the UI ? the freezing is because I use :
    val mapView = rememberMapViewWithLifecycle()
    Big Chungus

    Big Chungus

    1 year ago
    Show a loading indicator until the map widget is ready? This is working under the assumption that the map widget is actually freezing as opposed to the entire app.
    Also double check that you're not doing any IO on main thread to load it
    Akram Bensalem

    Akram Bensalem

    1 year ago
    yes, that looks a great solution, but I wander how to check if the map widget is ready or not ? 🤔
    Big Chungus

    Big Chungus

    1 year ago
    Browse the docs. I'm not familiar with that api so can't comment more. Just spitballing ideas here 😀
    Akram Bensalem

    Akram Bensalem

    1 year ago
    yes I will, thank you
    Big Chungus

    Big Chungus

    1 year ago
    Good luck!