diff --git a/assets/json/demo_questions_marathon b/assets/json/demo_questions_marathon index 7ec04fd..5e0bc8e 100644 --- a/assets/json/demo_questions_marathon +++ b/assets/json/demo_questions_marathon @@ -172,8 +172,8 @@ { "id": "dce4999c-5629-45f4-e4f6-08dae8b36b35", "titleEn": "1", - "titleAr": "null", - "questionId": 1, + "titleAr": "1", + "questionId": "253fc396-dab9-41ca-82bd-511f98c5dee8", "sequence": 1, "image": "null", "isCorrectOption": false diff --git a/lib/api/marathon/demo_marathon_repo.dart b/lib/api/marathon/demo_marathon_repo.dart index b019e51..a93a146 100644 --- a/lib/api/marathon/demo_marathon_repo.dart +++ b/lib/api/marathon/demo_marathon_repo.dart @@ -17,6 +17,7 @@ class DemoMarathonRepo { } Future getDemoNextQuestion({required int currentQuestionNumber}) async { + print("currentNumber: $currentQuestionNumber"); String response = await rootBundle.loadString('assets/json/demo_questions_marathon'); List json = jsonDecode(response); logger.i("json in getDemoNextQuestion: $json"); diff --git a/lib/ui/marathon/widgets/countdown_timer_detail_screen.dart b/lib/ui/marathon/widgets/countdown_timer_detail_screen.dart index 86b8b96..cbf9884 100644 --- a/lib/ui/marathon/widgets/countdown_timer_detail_screen.dart +++ b/lib/ui/marathon/widgets/countdown_timer_detail_screen.dart @@ -125,7 +125,7 @@ class CountdownTimerForDetailScreen extends StatelessWidget { int remainingTimeInMinutes = DateTime.parse(provider.marathonDetailModel.startTime!).difference(DateTime.now()).inMinutes; if (remainingTimeInMinutes <= 30) { scheduleMicrotask(() { - provider.canPlayDemo = true; + provider.canPlayDemo = false; }); } }