londonappbrewery/quizzler-flutter-challenge-final

Is it possible to create a correct answer counter?

Closed this issue · 2 comments

Hi everyone!
I've completed all of the TODO's and finished Quizzler App.
Still, I wonder if it's possible to display a total number of all the correct answers in the final alert.
Please let me know if you've found a solution to this issue.

Sure you can ,
the simplest form is by creating a variable called result and each time check for answer and putting a check icon make this result++ ,

then you will alert the final result :

Alert( context: context, title: 'Finished!', desc: 'You\'re score is $result out of ${brainObject.numberOfQuestions()}.', ).show();

then you would restart it with all other variables.

@Abdullah-Abusamra
Thank you, brother. Everything worked perfectly :)
Without this little detail, the app looked incomplete.
Wish you all the best!