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}) {
showHadithDialog(
context: context,
@ -240,7 +235,7 @@ class QuestionBloc extends Bloc<QuestionEvent, QuestionState> {
showAnswers: false,
correctAnswer: false,
));
showImageWithDelayed();
imageAnimationController?.forward();
await playQuestionAudio();
imageAnimationController?.reverse();
answerAnimationController?.forward().then((value) {
@ -291,7 +286,7 @@ class QuestionBloc extends Bloc<QuestionEvent, QuestionState> {
} else {
showingAnswerSequence(show: true);
await Future.delayed(const Duration(seconds: 1));
showImageWithDelayed();
imageAnimationController?.forward();
scrollController.jumpTo(0);
await playQuestionAudio();
imageAnimationController?.reverse();

Loading…
Cancel
Save