possible to exclude levels and change how questions are served
This commit is contained in:
@@ -41,15 +41,13 @@ class OptionsGrid extends StatelessWidget {
|
||||
if (showResult) {
|
||||
if (correctAnswers != null && correctAnswers!.contains(o)) {
|
||||
currentButtonColor = theme.colorScheme.tertiary;
|
||||
} else if (o == selectedOption) {
|
||||
currentButtonColor = theme.colorScheme.error;
|
||||
}
|
||||
}
|
||||
|
||||
return SizedBox(
|
||||
width: 160,
|
||||
child: ElevatedButton(
|
||||
onPressed: isDisabled ? null : () => onSelected(o),
|
||||
onPressed: isDisabled || o == '---' ? null : () => onSelected(o),
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: currentButtonColor,
|
||||
foregroundColor: currentTextColor,
|
||||
|
||||
Reference in New Issue
Block a user