Thread
#compose
    Rafs

    Rafs

    1 year ago
    Is there anyway to change the fillcolor of a particular pathdata in a vector drawable loaded in compose?
    John O'Reilly

    John O'Reilly

    1 year ago
    fwiw I'm using following if this is what you're looking to do?
    Image(asset = vectorResource(R.drawable.ic_bike),
        colorFilter = ColorFilter.tint(if (station.freeBikes() < 5) lowAvailabilityColor else highAvailabilityColor))
    likewise for an
    Icon
    am using
    Icon(imageVector = Icons.Filled.Favorite, tint = maroon500)