correct aligment

This commit is contained in:
Rune Dyselinck 2023-05-10 15:32:39 +02:00
parent d9f4170fbd
commit 6bef378fc0

View file

@ -72,16 +72,21 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
.fillMaxHeight() .fillMaxHeight()
.padding(16.dp), .padding(16.dp),
horizontalAlignment = Alignment.CenterHorizontally, horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center verticalArrangement = Arrangement.SpaceBetween
) { ) {
Text( Text(
text = stringResource(R.string.congrats) + hms, text = stringResource(R.string.congrats) + hms,
modifier = Modifier.fillMaxWidth(), modifier = Modifier
.fillMaxWidth(),
textAlign = TextAlign.Center, textAlign = TextAlign.Center,
fontWeight = FontWeight.Light, fontWeight = FontWeight.Light,
fontSize = 30.sp fontSize = 30.sp,
) )
Column(
modifier = Modifier.fillMaxWidth()
) {
Text( Text(
text = stringResource(R.string.how_did_it_go), text = stringResource(R.string.how_did_it_go),
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
@ -90,7 +95,12 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
fontSize = 30.sp fontSize = 30.sp
) )
Row { Row(
horizontalArrangement = Arrangement.Center,
modifier = Modifier
.fillMaxWidth()
.align(Alignment.CenterHorizontally)
) {
ImageBackgroundButton( ImageBackgroundButton(
paint = painterResource(id = R.drawable.mood_1), paint = painterResource(id = R.drawable.mood_1),
str = stringResource(id = R.string.good), str = stringResource(id = R.string.good),
@ -107,7 +117,9 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
setBackground2 = setBackground2 setBackground2 = setBackground2
) )
} }
}
Column {
BasicButton( BasicButton(
R.string.save, Modifier.basicButton() R.string.save, Modifier.basicButton()
) { ) {
@ -121,6 +133,7 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
} }
} }
} }
}
@Preview @Preview
@Composable @Composable