|
|
@ -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(); |
|
|
|