Is there a way to get the height and width of a `D...
# multiplatform
c
Is there a way to get the height and width of a
DrawableResource
?
k
You can load it in image/icon and then using graphicsLayer modifier you can get it's size.. it should be something like this.
Copy code
Icon(
        painter = painterResource(YOUR_RESOURCE),
        contentDescription = null,
        modifier = Modifier.graphicsLayer { 
            this.size
        }
    )