Browse Source

fix: skip button

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

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

@ -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),

Loading…
Cancel
Save