This Compose book is reviewed by Googlers Check it out →

ProvideTextStyle

Android

Component in Wear Material 3 Compose

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.

Last updated:

Installation

dependencies {
   implementation("androidx.wear.compose:compose-material3:1.0.0-alpha27")
}

Overloads

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