Last active
October 13, 2019 15:01
-
-
Save kirich1409/c856337cd9e97d7a2071403a993c5add to your computer and use it in GitHub Desktop.
Jetpack Compose sample. Composable function
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
@Composable | |
fun Hello(name: String) = MaterialTheme { | |
FlexColumn { | |
inflexible { // Item height will be equal content height | |
TopAppBar<MenuItem>( // App Bar with title | |
title = { Text("Jetpack Compose Sample") } | |
) | |
} | |
expanded(1F) { // occupy whole empty space in the Column | |
Center { // Center content | |
Text("Hello $name!") // Text label | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment