Loading packages/SystemUI/compose/core/src/com/android/compose/PlatformSlider.kt +12 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.compose import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation.core.animateFloatAsState import androidx.compose.foundation.Canvas Loading Loading @@ -266,8 +267,17 @@ private fun TrackBackground( label = "PlatformSliderCornersAnimation", ) val trackColor = colors.getTrackColor(enabled) val indicatorColor = colors.getIndicatorColor(enabled) val trackColor by animateColorAsState( colors.getTrackColor(enabled), label = "PlatformSliderTrackColorAnimation", ) val indicatorColor by animateColorAsState( colors.getIndicatorColor(enabled), label = "PlatformSliderIndicatorColorAnimation", ) Canvas(modifier.fillMaxSize()) { val trackCornerRadius = CornerRadius(size.height / 2, size.height / 2) val trackPath = Path() Loading Loading
packages/SystemUI/compose/core/src/com/android/compose/PlatformSlider.kt +12 −2 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.compose import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation.core.animateFloatAsState import androidx.compose.foundation.Canvas Loading Loading @@ -266,8 +267,17 @@ private fun TrackBackground( label = "PlatformSliderCornersAnimation", ) val trackColor = colors.getTrackColor(enabled) val indicatorColor = colors.getIndicatorColor(enabled) val trackColor by animateColorAsState( colors.getTrackColor(enabled), label = "PlatformSliderTrackColorAnimation", ) val indicatorColor by animateColorAsState( colors.getIndicatorColor(enabled), label = "PlatformSliderIndicatorColorAnimation", ) Canvas(modifier.fillMaxSize()) { val trackCornerRadius = CornerRadius(size.height / 2, size.height / 2) val trackPath = Path() Loading