Skip to content

Instantly share code, notes, and snippets.

@AlankritaShah
Created October 27, 2022 21:09
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 AlankritaShah/8218dd6b8d9f61c36e71c5c99930afb3 to your computer and use it in GitHub Desktop.
Save AlankritaShah/8218dd6b8d9f61c36e71c5c99930afb3 to your computer and use it in GitHub Desktop.
@Composable
fun BusinessCardBottomRow(contact: String) {
val image = painterResource(id = R.drawable.ic_launcher_background)
Row(
modifier = Modifier
.fillMaxWidth()
.padding(30.dp, 2.dp, 20.dp, 2.dp)
) {
Image(
painter = image,
contentDescription = contact,
modifier = Modifier
.width(30.dp)
.height(30.dp)
.padding(5.dp)
.wrapContentWidth(Alignment.Start)
)
Text(
contact,
modifier = Modifier
.padding(10.dp, 0.dp, 10.dp, 0.dp)
.align(Alignment.CenterVertically)
.fillMaxWidth()
.wrapContentWidth(Alignment.End)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment