|
|
|
@ -195,7 +195,6 @@ class MarathonProvider extends ChangeNotifier {
|
|
|
|
if (isUserWaiting) {
|
|
|
|
if (isUserWaiting) {
|
|
|
|
MarathonApiClient().joinMarathonAsParticipant().whenComplete(() async {
|
|
|
|
MarathonApiClient().joinMarathonAsParticipant().whenComplete(() async {
|
|
|
|
await callNextQuestionApi();
|
|
|
|
await callNextQuestionApi();
|
|
|
|
totalMarathoners = await MarathonApiClient().getMarathonersCount(marathonId: marathonDetailModel.id!);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
isButtonEnabled = false;
|
|
|
|
isButtonEnabled = false;
|
|
|
|
@ -359,6 +358,7 @@ class MarathonProvider extends ChangeNotifier {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
startTimerForQuestion();
|
|
|
|
startTimerForQuestion();
|
|
|
|
updateCardData();
|
|
|
|
updateCardData();
|
|
|
|
|
|
|
|
totalMarathoners = await MarathonApiClient().getMarathonersCount(marathonId: marathonDetailModel.id!);
|
|
|
|
Navigator.pushReplacementNamed(AppRoutes.navigatorKey.currentContext!, AppRoutes.marathonScreen);
|
|
|
|
Navigator.pushReplacementNamed(AppRoutes.navigatorKey.currentContext!, AppRoutes.marathonScreen);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
currentQuestion = AppState().getIsDemoMarathon
|
|
|
|
currentQuestion = AppState().getIsDemoMarathon
|
|
|
|
|