2.3.3
Full Changelog: 2.3.2...2.3.3
Breaking Changes
NavigationBars
now have a mandatoryicon
parameter and an optionallabel
(used to be the other way around).Chip
has now two distinct click callbacks:onClick
(when the user taps on the whole chip) andonCloseClick
(when the user taps on the close icon, if visibile).
New Features
- Add a
Color.parseColor(hex: String)
extension function to convert a given hex color to aandroidx.compose.ui.graphics.Color
:
val colorNoHashNoAlpha: Color = Color.parseColor("00FF00")
val colorNoHashWithAlpha: Color = Color.parseColor("FF00FF00")
val colorWithHashNoAlpha: Color = Color.parseColor("#00FF00")
val colorWithHashWithAlpha: Color = Color.parseColor("#FF00FF00")
- New composable
TrailingIconText
to easily display a text with a trailing icon.
Enhancements
LinearProgressBar
now handles a progress animation when being drawn.AuthenticationButtons
border color now defaults toMaterialTheme.colorScheme.outline
(instead ofMaterialTheme.colorScheme.onBackgronund
).Card
now has aonClick
callback when the user taps anywhere on the card.
Bug Fixes
None
Performance Improvements
None
Other Changes
- Adds a new Composable function
colorResource(lightColor, darkColor?)
to easily configure a Color with optional dark mode:
val light_myNewColor = Color(0xFF...)
val dark_myNewColor = Color(0xFF...)
val myNewColor = colorResource(colorLight = light_myNewColor, colorDark = dark_myNewColor)
Text(color = myNewColor, ...)