Skip to content

Instantly share code, notes, and snippets.

@AlankritaShah
Created October 27, 2022 21:03
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/4c772093ae81fa76f7bb7b73f2810b28 to your computer and use it in GitHub Desktop.
Save AlankritaShah/4c772093ae81fa76f7bb7b73f2810b28 to your computer and use it in GitHub Desktop.
@Composable
fun TaskManager(head: String, body: String) {
val image = painterResource(id = R.drawable.ic_launcher_background)
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = image,
contentDescription = "All tasks done",
modifier = Modifier
.width(150.dp)
.height(150.dp)
)
Text(
text = head,
fontSize = 24.sp,
fontWeight = FontWeight.Bold,
modifier = Modifier
.padding(0.dp, 24.dp, 0.dp, 8.dp)
)
Text(
text = body,
fontSize = 16.sp
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment