-
-
Save AlankritaShah/4c772093ae81fa76f7bb7b73f2810b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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