flutter_tex icon indicating copy to clipboard operation
flutter_tex copied to clipboard

The selected item style in TeXViewGroup will not be reset (Quiz Example)

Open sudeshkumara opened this issue 4 years ago • 0 comments

Hi @shah-xad

Could you please help on below issue,

Issue : If the answers of the adjacent questions are the same, the selected item style in TeXViewGroup will not be reset. Please see the following GIF

QuizMasterError

Next Button OnClick :

setState(() {
      selectedOptionId = null;
});
if (_currentIndex < (question.length - 1)) {
      setState(() {
        _currentIndex++;
      });
}

TeXViewGroup OnTap :

onTap: (id) {
   this.selectedOptionId = id;
      setState(() {
         isWrong = false;
      });
}

sudeshkumara avatar Aug 05 '20 08:08 sudeshkumara