From ded978359bffe423eb6b619259cd06be54d56c79 Mon Sep 17 00:00:00 2001 From: AmirrezaChegini Date: Wed, 24 Dec 2025 00:09:24 +0330 Subject: [PATCH] fix: skip button --- .../presentation/ui/screens/question_screen.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/features/question/presentation/ui/screens/question_screen.dart b/lib/features/question/presentation/ui/screens/question_screen.dart index 66a0d7f..b15a7d3 100644 --- a/lib/features/question/presentation/ui/screens/question_screen.dart +++ b/lib/features/question/presentation/ui/screens/question_screen.dart @@ -403,10 +403,12 @@ class _QuestionScreenState extends State controller: context.read().imageAnimationController!, child: TextButton( onPressed: () async { - context.read().imageAnimationController?.reverse(); - context.read().answerAnimationController?.forward(); - context.read().showingAnswerSequence(show: false); - context.read().pausePlaying(); + if(context.read().imageAnimationController?.isForwardOrCompleted ?? false){ + context.read().imageAnimationController?.reverse(); + context.read().answerAnimationController?.forward(); + context.read().showingAnswerSequence(show: false); + context.read().pausePlaying(); + } }, style: TextButton.styleFrom( foregroundColor: MyColors.white.withValues(alpha: 0.7),