Quantcast
Channel: Material icon size adjustment in Jetpack Compose? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Alon Albert for Material icon size adjustment in Jetpack Compose?

$
0
0

To make the answer above more accesible, define some extension functions:

fun VectorAsset.resize(size: Int) = this.resize(size.dp)fun VectorAsset.resize(size: Dp) = this.resize(size, size)fun VectorAsset.resize(width: Int, height: Int) = this.resize(width.dp, height.dp)fun VectorAsset.resize(width: Dp, height: Dp) =  this.copy(defaultWidth = width, defaultHeight = height)

Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>