-
-
Save KatieBarnett/fd791c238c2f4789b497fb9ff70f5095 to your computer and use it in GitHub Desktop.
Setting text size for top app bar
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
... | |
val scrollBehavior = TopAppBarDefaults.enterAlwaysScrollBehavior(rememberTopAppBarState()) | |
val collapsed = 22 | |
val expanded = 28 | |
val topAppBarTextSize = (collapsed + (expanded - collapsed)*(1-scrollBehavior.state.collapsedFraction)).sp | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment