Skip to content

Commit

Permalink
fix(finish): sửa lỗi giao diện màn hình finish
Browse files Browse the repository at this point in the history
  • Loading branch information
nqmgaming committed Dec 23, 2024
1 parent 3ef79d8 commit 22bd233
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fun FlipFlashCardFinish(
Text(
text = stringResource(R.string.txt_keep_focusing_on_your_study_set_to_master_it),
style = MaterialTheme.typography.bodyMedium.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
textAlign = TextAlign.Center,
modifier = Modifier.padding(16.dp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ fun QuizFlashCardFinish(
Text(
text = encouragementMessage,
style = MaterialTheme.typography.titleLarge.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
modifier = Modifier
.padding(16.dp)
Expand All @@ -121,7 +122,8 @@ fun QuizFlashCardFinish(
Text(
text = stringResource(R.string.txt_keep_focusing_on_your_study_set_to_master_it),
style = MaterialTheme.typography.bodyMedium.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
modifier = Modifier.padding(16.dp)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fun TrueFalseFlashcardFinish(
onContinueLearningClicked: () -> Unit,
listWrongAnswer: List<TrueFalseQuestion>,
onRestartClicked: () -> Unit,
isGetAll: Boolean
isGetAll: Boolean,
) {
val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.lottie_firework))
val progress by animateLottieCompositionAsState(
Expand Down Expand Up @@ -106,7 +106,8 @@ fun TrueFalseFlashcardFinish(
style = MaterialTheme.typography.titleLarge.copy(
fontWeight = FontWeight.Bold
),
modifier = Modifier.padding(16.dp)
modifier = Modifier
.padding(16.dp)
.padding(top = 32.dp)
)
StudySetDonutChart(
Expand All @@ -120,7 +121,8 @@ fun TrueFalseFlashcardFinish(
Text(
text = stringResource(R.string.txt_keep_focusing_on_your_study_set_to_master_it),
style = MaterialTheme.typography.bodyMedium.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
modifier = Modifier.padding(16.dp)
)
Expand Down Expand Up @@ -243,7 +245,11 @@ fun TrueFalseFlashcardFinish(
) {
Text(
text = when (isGetAll) {
true -> stringResource(R.string.txt_finish_answers_now)
true -> stringResource(
R.string.txt_finish_answers_now,
wrongAnswerCount
)

false -> stringResource(R.string.txt_continue_learning)
},
style = MaterialTheme.typography.bodyMedium.copy(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ fun WriteFlashcardFinish(
Text(
text = encouragementMessage,
style = MaterialTheme.typography.titleLarge.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
modifier = Modifier
.padding(16.dp)
Expand All @@ -121,7 +122,8 @@ fun WriteFlashcardFinish(
Text(
text = stringResource(R.string.txt_keep_focusing_on_your_study_set_to_master_it),
style = MaterialTheme.typography.bodyMedium.copy(
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
),
modifier = Modifier.padding(16.dp)
)
Expand Down

0 comments on commit 22bd233

Please sign in to comment.