Interface

NestedStyleConsumerStyleScope

A scope that allows applying a style defined in a parent style.

Source set: Common
public interface NestedStyleConsumerStyleScope

A scope that allows applying a style defined in a parent style.

Functions

applyNestedStyle

Source set: Common
public fun applyNestedStyle(key: NestedStyleKey)

Applies a style with the given key defined in a parent style. If no style is provided by the parent for the given key, calling this is equivalent to an empty style.

Parameters

key the key used to look up the style to apply
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: