#14 Username styling

This commit is contained in:
Tibo De Peuter 2023-04-16 09:54:23 +02:00
parent b60603d292
commit 0af211362d

View file

@ -1,23 +1,26 @@
package be.ugent.sel.studeez.common.composable package be.ugent.sel.studeez.common.composable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material.Text import androidx.compose.material.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp
@Composable @Composable
fun Headline( fun Headline(
text: String text: String
) { ) {
Row ( Row (
modifier = Modifier.fillMaxWidth() modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center
) { ) {
Text( Text(
text = text, text = text,
modifier = Modifier.height(45.dp) fontSize = 34.sp
) )
} }
} }