ComposeMaterial3RippleFlags


The object holding the feature flags for Material 3 ripple.

Developers can enable or disable experimental or migration-based features by modifying the boolean values within this object. These flags are considered temporary. They are expected to be removed and should not be relied upon as permanent configuration.

Usage:

class MyApplication : Application() {
override fun onCreate() {
ComposeMaterial3RippleFlags.someFeatureEnabled = true
super.onCreate()
}
}

Summary

Public properties

Boolean

When this flag is true, the inset focus ring (RippleNodeConfiguration.FocusConfiguration.InsetRing) is drawn using androidx.compose.foundation.BorderRenderer.

Cmn

Public properties

isBorderRendererFocusRingEnabled

var isBorderRendererFocusRingEnabled: Boolean

When this flag is true, the inset focus ring (RippleNodeConfiguration.FocusConfiguration.InsetRing) is drawn using androidx.compose.foundation.BorderRenderer. When false, it is drawn using a copy of the border drawing logic that predates androidx.compose.foundation.BorderRenderer.

Both implementations draw the same geometry, but can differ slightly in the anti-aliasing of edge pixels. Additionally, the legacy implementation does not apply the inset for simple rounded rectangles whose corner radius, reduced by the inset, is smaller than half of the stroke width.