-
Notifications
You must be signed in to change notification settings - Fork 4
Questions API
DanPeled edited this page Aug 26, 2024
·
2 revisions
In order to costumize the questions, go to the lib/services/scouting/scouting.dart file and modify the pages List<FormPageData> located at the top of the class.
e.g :
static final List<FormPageData> _pages = [
FormPageData(
pageName: "Autonomous",
questions: [
Question(
type: AnswerType.text,
questionText: "Notes amount",
evaluation: 2,
),
Question(
type: AnswerType.dropdown,
questionText: "Start position",
options: [
"Top",
"Middle",
],
evaluation: {
"Top": 1,
"Middle": 2,
},
),
Question(
type: AnswerType.checkbox,
questionText: "Autonomous?",
evaluation: 5,
),
Question(
type: AnswerType.multipleChoice,
options: [
"Yes",
"No",
"Brocolli",
],
questionText: "How many?",
evaluation: {
"Yes": 1,
"No": 3,
"Brocolli": 4,
},
),
Question(
type: AnswerType.number,
questionText: "Your opinion about canibalism",
evaluation: 12,
),
Question(
type: AnswerType.counter,
questionText: "Did they do it?",
options: [
0, // initial
0, // min
],
evaluation: 2,
),
],
),
];