Created
March 16, 2021 18:51
-
-
Save pauloaapereira/47f92f7d292f49a6741bef96593c6fce to your computer and use it in GitHub Desktop.
Android Dev Challenge - Week 3 - Bloom - A Full Development Overview - 2
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 | |
private fun LogoAndActions(onLoginClick: () -> Unit = {}) { | |
Box( | |
modifier = Modifier.fillMaxSize(), | |
contentAlignment = Alignment.BottomCenter | |
) { | |
Box( | |
modifier = Modifier.fillMaxHeight(.5f), | |
contentAlignment = Alignment.TopCenter | |
) { | |
Column( | |
verticalArrangement = Arrangement.Center, | |
horizontalAlignment = Alignment.CenterHorizontally, | |
modifier = Modifier.fillMaxWidth() | |
) { | |
Image( | |
painter = painterResource(id = if (MaterialTheme.colors.isLight) R.drawable.light_logo else R.drawable.dark_logo), | |
contentDescription = null | |
) | |
Text( | |
text = "Beautiful home garden solutions", | |
style = MaterialTheme.typography.subtitle1, | |
color = MaterialTheme.colors.secondary, | |
modifier = Modifier.paddingFromBaseline(top = 32.dp) | |
) | |
BloomLoginButton(modifier = Modifier.padding(top = 40.dp), text = "Create account") | |
TextButton(modifier = Modifier.padding(top = 24.dp), onClick = onLoginClick) { | |
Text(text = "Log in", color = MaterialTheme.colors.secondary, style = MaterialTheme.typography.button) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment