Skip to content

answers_widget.dart only supports 4 answers multiple choice #1

Description

@paulscliu

In answers_widget.dart, several lines limit the multiple-choice to 4 answers only:

line 10 const questionLeadings = ['A', 'B', 'C', 'D'];
line 63 for (int i = 0; i < 4; i++) {
line 79 for (int i = 0; i < 4; i++) {

For experiment, I change these lines to support 5 answers then modify the mock_api.dart so the last question has 5 answers. The program was not able to render the answers_widget when it reached that question. Can you tell me where else that I need to modify so the program can support true/false and multiple-choices with a different number of answers?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions