|
|
|
@ -161,27 +161,24 @@ class _QuestionScreenState extends State<QuestionScreen> with TickerProviderStat |
|
|
|
key: Key('${state.currentQuestion?.id}'), |
|
|
|
controller: context.read<QuestionBloc>().answerAnimationController, |
|
|
|
index: index, |
|
|
|
child: MyShowcaseWidget( |
|
|
|
globalKey: context.read<QuestionBloc>().showCaseKey['answer_key_$index']!, |
|
|
|
description: context.translate.showcase_answer, |
|
|
|
child: AnswerBox( |
|
|
|
globalKey: context.read<QuestionBloc>().showCaseKey['notif_key_$index']!, |
|
|
|
index: state.currentQuestion?.answers?[index].order ?? 1, |
|
|
|
answer: |
|
|
|
state.currentQuestion?.answers?[index] ?? |
|
|
|
AnswerEntity(), |
|
|
|
correctAnswer: state.currentQuestion?.correctAnswer ?? 0, |
|
|
|
onNotifTap: (AnswerEntity answer) { |
|
|
|
context.read<QuestionBloc>().showAnswerDialog( |
|
|
|
context: context, |
|
|
|
answerEntity: answer, |
|
|
|
); |
|
|
|
}, |
|
|
|
onTap: (isCorrect, correctAnswer) => |
|
|
|
context.read<QuestionBloc>().add( |
|
|
|
ChooseAnswerEvent(isCorrect, correctAnswer, context), |
|
|
|
), |
|
|
|
), |
|
|
|
child: AnswerBox( |
|
|
|
globalKey: context.read<QuestionBloc>().showCaseKey['notif_key_$index']!, |
|
|
|
answerGlobalKey: context.read<QuestionBloc>().showCaseKey['answer_key_$index']!, |
|
|
|
index: state.currentQuestion?.answers?[index].order ?? 1, |
|
|
|
answer: |
|
|
|
state.currentQuestion?.answers?[index] ?? |
|
|
|
AnswerEntity(), |
|
|
|
correctAnswer: state.currentQuestion?.correctAnswer ?? 0, |
|
|
|
onNotifTap: (AnswerEntity answer) { |
|
|
|
context.read<QuestionBloc>().showAnswerDialog( |
|
|
|
context: context, |
|
|
|
answerEntity: answer, |
|
|
|
); |
|
|
|
}, |
|
|
|
onTap: (isCorrect, correctAnswer) => |
|
|
|
context.read<QuestionBloc>().add( |
|
|
|
ChooseAnswerEvent(isCorrect, correctAnswer, context), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|