diff --git a/lib/features/question/presentation/bloc/question_bloc.dart b/lib/features/question/presentation/bloc/question_bloc.dart index c69d300..ced5212 100644 --- a/lib/features/question/presentation/bloc/question_bloc.dart +++ b/lib/features/question/presentation/bloc/question_bloc.dart @@ -87,11 +87,6 @@ class QuestionBloc extends Bloc { // ); // } - Future showImageWithDelayed() async { - await Future.delayed(const Duration(milliseconds: 500)); - imageAnimationController?.forward(); - } - void showHadith({required BuildContext context}) { showHadithDialog( context: context, @@ -240,7 +235,7 @@ class QuestionBloc extends Bloc { showAnswers: false, correctAnswer: false, )); - showImageWithDelayed(); + imageAnimationController?.forward(); await playQuestionAudio(); imageAnimationController?.reverse(); answerAnimationController?.forward().then((value) { @@ -291,7 +286,7 @@ class QuestionBloc extends Bloc { } else { showingAnswerSequence(show: true); await Future.delayed(const Duration(seconds: 1)); - showImageWithDelayed(); + imageAnimationController?.forward(); scrollController.jumpTo(0); await playQuestionAudio(); imageAnimationController?.reverse();