Browse Source

fix: globe animation

pull/63/head
AmirrezaChegini 5 days ago
parent
commit
97935b3588
  1. 9
      lib/features/question/presentation/bloc/question_bloc.dart

9
lib/features/question/presentation/bloc/question_bloc.dart

@ -87,11 +87,6 @@ class QuestionBloc extends Bloc<QuestionEvent, QuestionState> {
// ); // );
// } // }
Future<void> showImageWithDelayed() async {
await Future.delayed(const Duration(milliseconds: 500));
imageAnimationController?.forward();
}
void showHadith({required BuildContext context}) { void showHadith({required BuildContext context}) {
showHadithDialog( showHadithDialog(
context: context, context: context,
@ -240,7 +235,7 @@ class QuestionBloc extends Bloc<QuestionEvent, QuestionState> {
showAnswers: false, showAnswers: false,
correctAnswer: false, correctAnswer: false,
)); ));
showImageWithDelayed();
imageAnimationController?.forward();
await playQuestionAudio(); await playQuestionAudio();
imageAnimationController?.reverse(); imageAnimationController?.reverse();
answerAnimationController?.forward().then((value) { answerAnimationController?.forward().then((value) {
@ -291,7 +286,7 @@ class QuestionBloc extends Bloc<QuestionEvent, QuestionState> {
} else { } else {
showingAnswerSequence(show: true); showingAnswerSequence(show: true);
await Future.delayed(const Duration(seconds: 1)); await Future.delayed(const Duration(seconds: 1));
showImageWithDelayed();
imageAnimationController?.forward();
scrollController.jumpTo(0); scrollController.jumpTo(0);
await playQuestionAudio(); await playQuestionAudio();
imageAnimationController?.reverse(); imageAnimationController?.reverse();

Loading…
Cancel
Save