Interface

NestedStyleProviderStyleScope

A scope that allows providing a nested style that will be read and used by a nested styleable composable function.

Source set: Common
public interface NestedStyleProviderStyleScope

A scope that allows providing a nested style that will be read and used by a nested styleable composable function.

NestedStyleProviderStyleScope is implemented by CommonStyleScope, but a CustomStyle may choose to prevent arbitrary keys from being provided by defining a style scope that excludes this interface.

Functions

provideNestedStyle

Source set: Common
public fun provideNestedStyle(key: NestedStyleKey, style: CommonStyle)

Provides style as a nested style to the nested composable identified by the provided key. The style is intended to be applied as the style for a nested styleable composable using applyNestedStyle.

Parameters

key the key that identifies which nested composable this style is applied to
style the style to be applied to the nested composable

Content updated: