-
Notifications
You must be signed in to change notification settings - Fork 267
Open
Description
Lines 46 to 59 in 1da1d9d
@Composable | |
fun MyApp() { | |
// Theme information tends to be defined near the root of the application | |
val colors = colors() | |
} | |
// Some composable deep in the hierarchy | |
@Composable | |
fun SomeTextLabel(labelText: String) { | |
Text( | |
text = labelText, | |
color = colors.onPrimary // ← need to access colors here | |
) | |
} |
Metadata
Metadata
Assignees
Labels
No labels