From e59b31543818e495fefaa39d6451cedd7f8a2503 Mon Sep 17 00:00:00 2001 From: Faiz Hashmi Date: Thu, 2 Mar 2023 15:35:51 +0300 Subject: [PATCH] Reduced the option selection threshold from One to Zero --- lib/ui/marathon/marathon_provider.dart | 2 +- lib/ui/marathon/widgets/question_card.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/marathon/marathon_provider.dart b/lib/ui/marathon/marathon_provider.dart index 908a8c0..b88f54b 100644 --- a/lib/ui/marathon/marathon_provider.dart +++ b/lib/ui/marathon/marathon_provider.dart @@ -219,7 +219,7 @@ class MarathonProvider extends ChangeNotifier { oneSec, (Timer timer) async { // 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) { getCorrectAnswerAndUpdateAnswerColor(); } diff --git a/lib/ui/marathon/widgets/question_card.dart b/lib/ui/marathon/widgets/question_card.dart index 27d8cbf..8aa76bd 100644 --- a/lib/ui/marathon/widgets/question_card.dart +++ b/lib/ui/marathon/widgets/question_card.dart @@ -130,7 +130,7 @@ class AnswerContent extends StatelessWidget { return AnswerTileForText( index: index, onAnswerTapped: () { - if (provider.totalCurrentQuestionTime - provider.currentGapTime <= 1) { + if (provider.totalCurrentQuestionTime - provider.currentGapTime <= 0) { null; } else { provider.updateCurrentQuestionOptionStatus(QuestionsOptionStatus.selected, index);