From 5145e6bdb9294810d56a1cf2f0ef202fd61ba6b3 Mon Sep 17 00:00:00 2001 From: tomivt Date: Tue, 11 Mar 2025 10:50:41 +0100 Subject: [PATCH] feat : Fix Answers Column Display --- .../what_the_fantasy/ui/screens/QuizPage.kt | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/QuizPage.kt b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/QuizPage.kt index e20a5f2..28712b6 100644 --- a/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/QuizPage.kt +++ b/What_The_Fantasy/app/src/main/java/com/example/what_the_fantasy/ui/screens/QuizPage.kt @@ -98,14 +98,17 @@ fun QuizPage( Spacer(Modifier.height(20.dp)) Column( modifier = Modifier - .background(brush = gradient, shape = RoundedCornerShape(20.dp)), + .background(brush = gradient, shape = RoundedCornerShape(20.dp)) + .height(800.dp), horizontalAlignment = Alignment.CenterHorizontally ) { Text( "Question ${idCurrentQuestion + 1}", color = Color.White, fontSize = 18.sp, - modifier = Modifier.padding(top = 20.dp), + modifier = Modifier + .padding(top = 20.dp) + .weight(0.1f), style = TextStyle( fontSize = 25.sp, fontWeight = FontWeight.Bold, @@ -115,12 +118,19 @@ fun QuizPage( Text( question.question, color = Color.White, - fontSize = 22.sp, - modifier = Modifier.padding(40.dp) + fontSize = 15.sp, + modifier = Modifier + .padding(horizontal = 25.dp) + .weight(0.1f), + textAlign = TextAlign.Center ) Column( modifier = Modifier - .padding(top = 30.dp) + .weight(0.7f) + .fillMaxHeight() + .padding(vertical = 30.dp), + verticalArrangement = Arrangement.SpaceBetween + ) { listOf( question.ansA, @@ -139,7 +149,6 @@ fun QuizPage( ) { Text(answer, color = Color.Black, fontSize = 18.sp) } - Spacer(modifier = Modifier.height(60.dp)) } } }