-
-
Save saqib-github-commits/91bc73d9ff507e03c1181ee4c01539f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object MaterialTheme { | |
/** | |
* Retrieves the current [ColorScheme] at the call site's position in the hierarchy. | |
*/ | |
val colorScheme: ColorScheme | |
@Composable | |
@ReadOnlyComposable | |
get() = LocalColorScheme.current | |
/** | |
* Retrieves the current [Typography] at the call site's position in the hierarchy. | |
*/ | |
val typography: Typography | |
@Composable | |
@ReadOnlyComposable | |
get() = LocalTypography.current | |
/** | |
* Retrieves the current [Shapes] at the call site's position in the hierarchy. | |
*/ | |
val shapes: Shapes | |
@Composable | |
@ReadOnlyComposable | |
get() = LocalShapes.current | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment