Skip to content

Instantly share code, notes, and snippets.

@GianpaMX
Created April 25, 2022 12:34
Show Gist options
  • Save GianpaMX/eb028192f3dc4ea37b0d5b23ae1877dc to your computer and use it in GitHub Desktop.
Save GianpaMX/eb028192f3dc4ea37b0d5b23ae1877dc to your computer and use it in GitHub Desktop.
@Composable
fun AddNewPerson(onAddNewPayerClick: (() -> Unit)? = null) {
Row(
modifier = Modifier
.height(56.dp)
.fillMaxWidth()
.clickable {
onAddNewPayerClick?.invoke()
}
.padding(horizontal = 16.dp, vertical = 8.dp),
verticalAlignment = Alignment.CenterVertically,
) {
Text("Add new person...", color = Color.Gray, fontStyle = FontStyle.Italic)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment