Skip to content

Instantly share code, notes, and snippets.

@KatieBarnett
Last active July 14, 2023 09:05
Show Gist options
  • Save KatieBarnett/f977e98807d2c37fb4a0bae344d92492 to your computer and use it in GitHub Desktop.
Save KatieBarnett/f977e98807d2c37fb4a0bae344d92492 to your computer and use it in GitHub Desktop.
Non resizing test using a material theme value
Text(
text = "This is non-resizing text with font scale ${LocalDensity.current.fontScale}",
fontSize = MaterialTheme.typography.bodyLarge.fontSize.nonScaledSp
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment