Skip to content

SillyDevices/Compose-AutoSizeText

Repository files navigation

AutoSizeText


Text Composamble wrapper that automatically adjusts its font size to fit the available space. Compose replacement for Autosizing TextView

Setup


Add the dependency to your build.gradle.kts file.

implementation("com.sillydevices:compose.ui.autosizetext:0.1.1")

Usage


This configuration only shrinks the text size to fit the available space.

AutoSizeText("Your text")

This configuration try to fit the text in the available space.

AutoSizeText("Your text", fontSize = TextUnit.Unspecified)
AutoSizeText("Your text", maxFontSize = TextUnit.Unspecified)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages