Browse Source

fix: skip button

pull/62/head
AmirrezaChegini 5 days ago
parent
commit
ded978359b
  1. 10
      lib/features/question/presentation/ui/screens/question_screen.dart

10
lib/features/question/presentation/ui/screens/question_screen.dart

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

Loading…
Cancel
Save