Advertisement
TheIceMage

Kotlin practice

Mar 21st, 2024
1,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.58 KB | None | 0 0
  1. @Composable
  2. fun QuadrantComposable(text1: String, text2: String, color: Color, modifier: Modifier = Modifier) {
  3.     Column(modifier = modifier
  4.         .fillMaxSize()
  5.         .background(color)
  6.         .padding(16.dp),
  7.         verticalArrangement = Arrangement.Center,
  8.         horizontalAlignment = Alignment.CenterHorizontally) {
  9.         Text(
  10.             text = text1,
  11.             fontWeight = FontWeight.Bold,
  12.             modifier = modifier.padding(bottom = 16.dp)
  13.         )
  14.  
  15.         Text(
  16.             text = text2,
  17.             textAlign = TextAlign.Justify
  18.         )
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement