|
|
@ -403,10 +403,12 @@ class _QuestionScreenState extends State<QuestionScreen> |
|
|
controller: context.read<QuestionBloc>().imageAnimationController!, |
|
|
controller: context.read<QuestionBloc>().imageAnimationController!, |
|
|
child: TextButton( |
|
|
child: TextButton( |
|
|
onPressed: () async { |
|
|
onPressed: () async { |
|
|
|
|
|
if(context.read<QuestionBloc>().imageAnimationController?.isForwardOrCompleted ?? false){ |
|
|
context.read<QuestionBloc>().imageAnimationController?.reverse(); |
|
|
context.read<QuestionBloc>().imageAnimationController?.reverse(); |
|
|
context.read<QuestionBloc>().answerAnimationController?.forward(); |
|
|
context.read<QuestionBloc>().answerAnimationController?.forward(); |
|
|
context.read<QuestionBloc>().showingAnswerSequence(show: false); |
|
|
context.read<QuestionBloc>().showingAnswerSequence(show: false); |
|
|
context.read<QuestionBloc>().pausePlaying(); |
|
|
context.read<QuestionBloc>().pausePlaying(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
style: TextButton.styleFrom( |
|
|
style: TextButton.styleFrom( |
|
|
foregroundColor: MyColors.white.withValues(alpha: 0.7), |
|
|
foregroundColor: MyColors.white.withValues(alpha: 0.7), |
|
|
|