refactor: merge to compose new version usage

This commit is contained in:
2024-11-10 22:55:58 +08:00
parent 5efe1d636f
commit f39ca20821
3 changed files with 7 additions and 10 deletions

View File

@@ -60,8 +60,11 @@ data class RippleStyle(
* @param style the style, default is [InteractionDefaults.rippleStyle].
* @return [Indication]
*/
@Suppress("DEPRECATION_ERROR")
@Composable
fun rememberRipple(style: RippleStyle = InteractionDefaults.rippleStyle()) =
// FIXME: Compose deprecated the rememberRipple function,
// it's no effect without Android platform now, need to migrate to the new API.
materialRememberRipple(style.bounded, style.radius, style.color)
/**