Repository navigation
2.3.3
Full Changelog: 2.3.2...2.3.3
Breaking Changes
NavigationBarsnow have a mandatoryiconparameter and an optionallabel(used to be the other way around).Chiphas 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
TrailingIconTextto easily display a text with a trailing icon.
Enhancements
LinearProgressBarnow handles a progress animation when being drawn.AuthenticationButtonsborder color now defaults toMaterialTheme.colorScheme.outline(instead ofMaterialTheme.colorScheme.onBackgronund).Cardnow has aonClickcallback 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, ...)