From 70eceaf648679c82222895f15ff58d6530718c0f Mon Sep 17 00:00:00 2001 From: FaizHashmiCS22 Date: Tue, 25 Oct 2022 17:23:43 +0300 Subject: [PATCH] Adding interactions --- lib/ui/marathon/widgets/question_card.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/ui/marathon/widgets/question_card.dart b/lib/ui/marathon/widgets/question_card.dart index 5457589..e8d7a7f 100644 --- a/lib/ui/marathon/widgets/question_card.dart +++ b/lib/ui/marathon/widgets/question_card.dart @@ -156,9 +156,8 @@ class AnswerContent extends StatelessWidget { children: [ InkWell( onTap: () { + provider.cancelTimer(); provider.swiperController.swipeLeft(); - provider.startTimer(context); - }, child: Container( height: 60, @@ -180,8 +179,8 @@ class AnswerContent extends StatelessWidget { const SizedBox(height: 15), InkWell( onTap: () { + provider.cancelTimer(); provider.swiperController.swipeLeft(); - provider.startTimer(context); }, child: Container( height: 60, @@ -203,8 +202,8 @@ class AnswerContent extends StatelessWidget { const SizedBox(height: 15), InkWell( onTap: () { + provider.cancelTimer(); provider.swiperController.swipeLeft(); - provider.startTimer(context); }, child: Container( height: 60, @@ -225,7 +224,10 @@ class AnswerContent extends StatelessWidget { ), const SizedBox(height: 15), InkWell( - onTap: () {}, + onTap: () { + provider.cancelTimer(); + provider.swiperController.swipeLeft(); + }, child: Container( height: 60, width: MediaQuery.of(context).size.width - 75,