diff --git a/lib/features/question/presentation/ui/widgets/question_title.dart b/lib/features/question/presentation/ui/widgets/question_title.dart index 5262ec9..0a2681a 100644 --- a/lib/features/question/presentation/ui/widgets/question_title.dart +++ b/lib/features/question/presentation/ui/widgets/question_title.dart @@ -23,19 +23,20 @@ class QuestionTitle extends StatelessWidget { '${context.translate.step} ${step ?? 0}', style: MYTextStyle.titr3, ), - Text( - '${context.translate.question} ${currentQuestion ?? 0}/${(questionLength ?? 0) - 1}', - style: MYTextStyle.matn3.copyWith( - color: MyColors.white.withValues(alpha: 0.5), - shadows: [ - BoxShadow( - color: MyColors.black.withValues(alpha: 0.25), - blurRadius: 0.82, - offset: const Offset(0, 1.22), - ), - ], + if ((currentQuestion ?? 0) < (questionLength ?? 0)) + Text( + '${context.translate.question} ${currentQuestion ?? 0}/${(questionLength ?? 0) - 1}', + style: MYTextStyle.matn3.copyWith( + color: MyColors.white.withValues(alpha: 0.5), + shadows: [ + BoxShadow( + color: MyColors.black.withValues(alpha: 0.25), + blurRadius: 0.82, + offset: const Offset(0, 1.22), + ), + ], + ), ), - ), ], ); }