correct aligment
This commit is contained in:
parent
d9f4170fbd
commit
6bef378fc0
1 changed files with 48 additions and 35 deletions
|
@ -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()
|
||||||
) {
|
) {
|
||||||
|
@ -120,6 +132,7 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi
|
||||||
sessionRecapActions.discardSession()
|
sessionRecapActions.discardSession()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Preview
|
@Preview
|
||||||
|
|
Reference in a new issue