mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-07 19:14:12 +08:00
fix: pressed and hovered gain in CheckBox
This commit is contained in:
@@ -88,9 +88,9 @@ fun CheckBox(
|
||||
) {
|
||||
val hovered by interactionSource.collectIsHoveredAsState()
|
||||
val pressed by interactionSource.collectIsPressedAsState()
|
||||
val animatedStrokeScale by animateFloatAsState(if (pressed) 0.9f else 1f)
|
||||
val animatedStrokeScale by animateFloatAsState(if (pressed) style.pressedGain else 1f)
|
||||
val animatedColor by animateColorAsState(if (checked) colors.activeColor else colors.inactiveColor)
|
||||
val animatedContentScale by animateFloatAsState(if (hovered) 1.1f else 1f)
|
||||
val animatedContentScale by animateFloatAsState(if (hovered) style.hoveredGain else 1f)
|
||||
val animatedContentAlpha by animateFloatAsState(if (checked) 1f else 0f)
|
||||
val animatedContentLayer by animateFloatAsState(if (checked) 1f else 0f)
|
||||
val sModifier = if (enabled) modifier else modifier.alpha(0.5f)
|
||||
|
Reference in New Issue
Block a user