Skip to content

Instantly share code, notes, and snippets.

@aqua30
Last active June 14, 2022 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aqua30/1b2c3cdcd602547f1e6bb41b1193a4e4 to your computer and use it in GitHub Desktop.
Save aqua30/1b2c3cdcd602547f1e6bb41b1193a4e4 to your computer and use it in GitHub Desktop.
val loginY = density.run { 510.dp.toPx() }
Box(
modifier = Modifier
.fillMaxSize()
.padding(16.dp),
) {
Signup(
modifier = Modifier
.fillMaxWidth()
.height(600.dp)
.placeAt(0, 0)
)
Login(
modifier = Modifier
.fillMaxWidth()
.height(250.dp)
.placeAt(0, loginY.roundToInt())
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment