Skip to content

Instantly share code, notes, and snippets.

@saqib-github-commits
Created January 16, 2024 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saqib-github-commits/91bc73d9ff507e03c1181ee4c01539f8 to your computer and use it in GitHub Desktop.
Save saqib-github-commits/91bc73d9ff507e03c1181ee4c01539f8 to your computer and use it in GitHub Desktop.
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