diff --git a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/flip/component/FlipFlashCardFinish.kt b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/flip/component/FlipFlashCardFinish.kt index 3f57706d..cd24d92a 100644 --- a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/flip/component/FlipFlashCardFinish.kt +++ b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/flip/component/FlipFlashCardFinish.kt @@ -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) diff --git a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/quiz/component/QuizFlashCardFinish.kt b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/quiz/component/QuizFlashCardFinish.kt index 24c62289..a95a5ecb 100644 --- a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/quiz/component/QuizFlashCardFinish.kt +++ b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/quiz/component/QuizFlashCardFinish.kt @@ -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) @@ -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) ) diff --git a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/true_false/component/TrueFalseFlashcardFinish.kt b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/true_false/component/TrueFalseFlashcardFinish.kt index 9aa54d18..23396109 100644 --- a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/true_false/component/TrueFalseFlashcardFinish.kt +++ b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/true_false/component/TrueFalseFlashcardFinish.kt @@ -67,7 +67,7 @@ fun TrueFalseFlashcardFinish( onContinueLearningClicked: () -> Unit, listWrongAnswer: List, onRestartClicked: () -> Unit, - isGetAll: Boolean + isGetAll: Boolean, ) { val composition by rememberLottieComposition(LottieCompositionSpec.RawRes(R.raw.lottie_firework)) val progress by animateLottieCompositionAsState( @@ -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( @@ -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) ) @@ -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( diff --git a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/write/component/WriteFlashcardFinish.kt b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/write/component/WriteFlashcardFinish.kt index 6fae1791..a3f13d87 100644 --- a/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/write/component/WriteFlashcardFinish.kt +++ b/app/src/main/java/com/pwhs/quickmem/presentation/app/study_set/studies/write/component/WriteFlashcardFinish.kt @@ -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) @@ -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) )