Skip to content

Conversation

@schultek
Copy link
Contributor

@schultek schultek commented Nov 5, 2025

Adds a Quiz component for use in FWE.

@parlough
Copy link
Member

parlough commented Nov 8, 2025

@schultek Is this PR ready for review?

@schultek schultek force-pushed the feat/quiz-component branch from 3ac390c to 1c8c779 Compare November 10, 2025 09:46
@schultek schultek marked this pull request as ready for review November 10, 2025 09:49
@schultek schultek requested review from a team and sfshaza2 as code owners November 10, 2025 09:49
@schultek schultek force-pushed the feat/quiz-component branch from 1af7d6d to 700efd4 Compare November 10, 2025 09:53
@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Nov 10, 2025

Visit the preview URL for this PR (updated for commit 0bf4f18):

https://flutter-docs-prod--pr12648-feat-quiz-component-wo094agg.web.app

@schultek
Copy link
Contributor Author

@parlough The initial implementation is ready and can be tested on the '/fwe' page locally.

What I'm not sure yet is how the flow of answering multiple questions should be. Can you define this a bit more in detail in the project item?

@parlough parlough self-requested a review November 10, 2025 18:05
@parlough
Copy link
Member

What I'm not sure yet is how the flow of answering multiple questions should be. Can you define this a bit more in detail in the project item?

Yes of course. Check the end of the project item, I added some screenshots/mockups of the flow I was thinking. Roughly:

  • Add a lighter wrapper around the entire thing.
  • Add a header, perhaps "Test your knowledge"
  • Below the header, indicate the current question out of how many questions.
  • Once all questions are complete, show a special congrats/nice job and change the "Next question" button to "Retake".

@schultek schultek force-pushed the feat/quiz-component branch 2 times, most recently from 5e2c736 to 3441b60 Compare November 11, 2025 15:07
@schultek schultek force-pushed the feat/quiz-component branch from 3441b60 to 691aabc Compare November 11, 2025 15:09
@schultek
Copy link
Contributor Author

@parlough All done.

  • Quiz title can be configured in markdown
  • On correct answer user can go to next question, or complete the quiz.

Question: On "Try again" just reset the current question or the whole quiz (e.g. when answering q2 incorrect, reset to q1 or just re-answer q2)?

@parlough
Copy link
Member

parlough commented Nov 11, 2025

Thanks for those updates, looks amazing.

Question: On "Try again" just reset the current question or the whole quiz (e.g. when answering q2 incorrect, reset to q1 or just re-answer q2)?

Just the current question, so the implementation you have now looks great!


Side request. Would it be challenging to add a less prominent "Previous" button to the left of the "Next question" button after the 1st question? So users can review their previous answers and the explanation.

@schultek
Copy link
Contributor Author

Done

@parlough parlough changed the title [WIP] Add quiz component Add quiz component for FWE Nov 11, 2025
Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks and feels perfect @schultek. As always, thank you!

The main remaining ask I have is to convert the questions to buttons for improved accessible. Other than that, some small structural suggestions.

Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Thanks for making those adjustments and accessibility fixes.

@parlough parlough merged commit ae1d177 into main Nov 12, 2025
9 checks passed
@parlough parlough deleted the feat/quiz-component branch November 12, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants