Fixed
Status Update
Comments
nj...@google.com <nj...@google.com> #2
tr...@gmail.com <tr...@gmail.com> #3
Thanks for the report!
lp...@google.com <lp...@google.com> #4
The release notes documentation has been edited to clarify this change in behavior for line height.
To support non-standard text sizes, we encourage users to follow the Material design system and use a different style = LocalTextStyle.current.copy(lineHeight = TextUnit.Unspecified)
, or create a custom Typography
entirely.
Description
Android Studio Build: Arctic Fix 2020.3.1 Canary 5
Alpha 11 lost the ability for us to change the default size of an icon loaded with vectorResource. In Alpha 10 I could do this by using:
Icon(vectorResource(R.drawable.ic_icon).copy(defaultWidth = 100.dp, defaultHeight = 100.dp))
This no longer works in Alpha 11. I did sort of find a way around this using the following:
Icon(vectorResource(R.drawable.ic_icon), modifier = Modifier.size(100.dp).scale(4f))
But this causes the vector to become pixelated. I thought the whole point of using vector resources is to be able to easily scale to any size and avoid pixelation?