Browse Source

fix: question number

pull/60/head
AmirrezaChegini 1 week ago
parent
commit
7336136d2a
  1. 25
      lib/features/question/presentation/ui/widgets/question_title.dart

25
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),
),
],
),
),
),
],
);
}

Loading…
Cancel
Save