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/assets/langs/en-US.json b/assets/langs/en-US.json index 4af1293..3d37c1b 100644 --- a/assets/langs/en-US.json +++ b/assets/langs/en-US.json @@ -508,8 +508,8 @@ "favorite": "My Favorites", "searchfromchat": "Search from chat", "yourAnswerCorrect": "Your answer is correct", - "youMissedTheQuestion": "You ran out of time. You are out of the game. But you can continue and as a viewer.", - "wrongAnswer": "Your answer is Incorrect. You are out of the game. But you can continue and as a viewer.", + "youMissedTheQuestion": "You ran out of time. You are out of the game. But you can continue as a viewer.", + "wrongAnswer": "Your answer is Incorrect. You are out of the game. But you can continue as a viewer.", "oops": "Ooopsss!!!!", "winner": "WINNER", "youWantToLeaveMarathon": "Are you sure you want to go back? You will be out of the contest.", 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/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index c33ec06..f01aa0d 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -1034,8 +1034,8 @@ class CodegenLoader extends AssetLoader { "favorite": "My Favorites", "searchfromchat": "Search from chat", "yourAnswerCorrect": "Your answer is correct", - "youMissedTheQuestion": "You ran out of time. You are out of the game. But you can continue and as a viewer.", - "wrongAnswer": "Your answer is Incorrect. You are out of the game. But you can continue and as a viewer.", + "youMissedTheQuestion": "You ran out of time. You are out of the game. But you can continue as a viewer.", + "wrongAnswer": "Your answer is Incorrect. You are out of the game. But you can continue as a viewer.", "oops": "Ooopsss!!!!", "winner": "WINNER", "youWantToLeaveMarathon": "Are you sure you want to go back? You will be out of the contest.", 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; }); } }