Composable Component

ProvideTextStyle

This function is used to set the current value of LocalTextStyle, merging the given style with the current style values for any missing attributes.

This function is used to set the current value of LocalTextStyle, merging the given style with the current style values for any missing attributes. Any Text components included in this component's content will be styled with this style unless styled explicitly.

ProvideTextStyle

Android
@Composable
fun ProvideTextStyle(value: TextStyle, content: @Composable () -> Unit)