Reduced the option selection threshold from One to Zero

merge-requests/175/head
Faiz Hashmi 2 years ago
parent bc06dc7912
commit e59b315438

@ -219,7 +219,7 @@ class MarathonProvider extends ChangeNotifier {
oneSec, oneSec,
(Timer timer) async { (Timer timer) async {
// This 1 is just to show the color of answer tile for 1 and then update card status // This 1 is just to show the color of answer tile for 1 and then update card status
if (totalCurrentQuestionTime - currentGapTime == 1) { if (totalCurrentQuestionTime - currentGapTime == 0) {
if (callCountThreshold == 0) { if (callCountThreshold == 0) {
getCorrectAnswerAndUpdateAnswerColor(); getCorrectAnswerAndUpdateAnswerColor();
} }

@ -130,7 +130,7 @@ class AnswerContent extends StatelessWidget {
return AnswerTileForText( return AnswerTileForText(
index: index, index: index,
onAnswerTapped: () { onAnswerTapped: () {
if (provider.totalCurrentQuestionTime - provider.currentGapTime <= 1) { if (provider.totalCurrentQuestionTime - provider.currentGapTime <= 0) {
null; null;
} else { } else {
provider.updateCurrentQuestionOptionStatus(QuestionsOptionStatus.selected, index); provider.updateCurrentQuestionOptionStatus(QuestionsOptionStatus.selected, index);

Loading…
Cancel
Save