Skip to content

Instantly share code, notes, and snippets.

@ahmedrizwan
Created May 27, 2020 11:23
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 ahmedrizwan/76f55c3fc101e19ce076fddb03f66bdf to your computer and use it in GitHub Desktop.
Save ahmedrizwan/76f55c3fc101e19ce076fddb03f66bdf to your computer and use it in GitHub Desktop.
@Composable()
fun NumbersPanel(alpha: Int) {
Stack {
Row(modifier = Modifier.fillMaxSize()) {
numberColumns.forEach { numberColumn ->
Column(modifier = Modifier.weight(1f)) {
numberColumn.forEach { text ->
MainContentButton(text)
}
}
}
Divider(
modifier = Modifier.preferredWidth(1.dp).fillMaxHeight(),
color = Color(0xFFd3d3d3)
)
Column(modifier = Modifier.weight(1.3f)) {
operationsColumn.forEach { operation ->
OperationItem(text = operation)
}
}
Spacer(modifier = Modifier.preferredWidth(30.dp))
}
DimOverlay(alpha = alpha)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment