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,
(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();
}

@ -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);

Loading…
Cancel
Save