|
|
|
@ -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))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|