trivia_rebuilder icon indicating copy to clipboard operation
trivia_rebuilder copied to clipboard

answers_widget.dart only supports 4 answers multiple choice

Open paulscliu opened this issue 6 years ago • 0 comments

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?

paulscliu avatar Nov 04 '19 04:11 paulscliu