Property

LocalTextStyle

CompositionLocal containing the preferred TextStyle that will be used by Text components by default.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
val LocalTextStyle = compositionLocalOf(structuralEqualityPolicy()) { DefaultTextStyle }

CompositionLocal containing the preferred TextStyle that will be used by Text components by default. To set the value for this CompositionLocal, see ProvideTextStyle which will merge any missing TextStyle properties with the existing TextStyle set in this CompositionLocal.