|
|
|
@ -16,6 +16,7 @@ class AnswerBox extends StatefulWidget { |
|
|
|
required this.correctAnswer, |
|
|
|
required this.index, |
|
|
|
required this.globalKey, |
|
|
|
required this.answerGlobalKey, |
|
|
|
this.onTap, |
|
|
|
this.onNotifTap, |
|
|
|
}); |
|
|
|
@ -26,6 +27,7 @@ class AnswerBox extends StatefulWidget { |
|
|
|
final int index; |
|
|
|
final Function(AnswerEntity answer)? onNotifTap; |
|
|
|
final GlobalKey globalKey; |
|
|
|
final GlobalKey answerGlobalKey; |
|
|
|
|
|
|
|
@override |
|
|
|
State<AnswerBox> createState() => _AnswerBoxState(); |
|
|
|
@ -55,7 +57,10 @@ class _AnswerBoxState extends State<AnswerBox> { |
|
|
|
child: Stack( |
|
|
|
alignment: Alignment.topCenter, |
|
|
|
children: [ |
|
|
|
AnswerPictureBox( |
|
|
|
MyShowcaseWidget( |
|
|
|
globalKey: widget.answerGlobalKey, |
|
|
|
description: context.translate.showcase_answer, |
|
|
|
child: AnswerPictureBox( |
|
|
|
selected: selected, |
|
|
|
index: widget.index, |
|
|
|
image: widget.answer.image ?? '', |
|
|
|
@ -64,6 +69,7 @@ class _AnswerBoxState extends State<AnswerBox> { |
|
|
|
widget.onNotifTap?.call(widget.answer); |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
left: 0, |
|
|
|
right: 0, |
|
|
|
|