Open apomalyn opened 4 months ago
As a developer, I want a generic widget to load any format of questions
Implement a QuestionSkeleton widget that:
QuestionSkeleton
src/practice/questions/widgets
Widget child
VoidCallback? onSubmitPressed
bool hideSubmitButton = false
String? submitLabel
IntructionTypes? instruction
Column
MainAxisAlignment.spaceBetween
instruction
InstructionTypes.custom
Instruction
child
hideSubmitButton
ElevatedButton
onPressed: onSubmitPressed
Not available
Child of #160
Depends on:
As a developer, I want a generic widget to load any format of questions
Requirements
Implement a
QuestionSkeleton
widget that:What needs to be done
src/practice/questions/widgets
, implement aQuestionSkeleton
widget, that:Widget child
VoidCallback? onSubmitPressed
bool hideSubmitButton = false
String? submitLabel
: override the continue button labelIntructionTypes? instruction
: instruction to display. Hidden if not providedColumn
withMainAxisAlignment.spaceBetween
:instruction
is provided and isn'tInstructionTypes.custom
, displayInstruction
widgetchild
hideSubmitButton
is false:ElevatedButton
, text: submitLabel or "Check" if not provided,onPressed: onSubmitPressed
Design
Not available
Dependencies
Child of #160
Depends on:
167
179