It seems that `Icon` can't be resized: ```Icon( i...
# compose
l
It seems that
Icon
can't be resized:
Copy code
Icon(
	imageVector = Icons.Default.SentimentVerySatisfied,
	modifier = Modifier.size(40.dp) // has no effect
)
Image on the other hand works. It's a bit confusing when to use
Icon
and when
Image
.
ImageVector
,
ImageBitmap
Painter
makes it even more confusing. Can someone enlighten me here please?
v
Can you try something like this
Copy code
Icon(imageVector = Icons.Default.SentimentVerySatisfied.copy(defaultHeight = 100.dp, defaultWidth = 100.dp))
l
@Vinay Gaba This works, appreciated 🙂
👍🏼 1
c
Is the
copy()
function on
ImageVector
coming from a particular package? In my project, the
copy()
function doesn't exist 🤔