trivia_rebuilder
trivia_rebuilder copied to clipboard
answers_widget.dart only supports 4 answers multiple choice
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?