Composable Function

rememberStyleResolver

Create and remember a StyleResolver.

rememberStyleResolver

Source set: Common
@Composable
public fun rememberStyleResolver(
    style: CommonStyle,
    styleState: StyleState = remember { MutableStyleState(null) },
): StyleResolver

Create and remember a StyleResolver.

rememberStyleResolver should be used when creating a StyleResolver in composition because it will update the style and styleState values in a remembered StyleResolver which avoids unnecessary property invalidations and animation cancellation.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: