working on themes
This commit is contained in:
@@ -40,9 +40,9 @@ class OptionsGrid extends StatelessWidget {
|
||||
|
||||
if (showResult) {
|
||||
if (correctAnswers != null && correctAnswers!.contains(o)) {
|
||||
currentButtonColor = Colors.green;
|
||||
currentButtonColor = theme.colorScheme.tertiary;
|
||||
} else if (o == selectedOption) {
|
||||
currentButtonColor = Colors.red;
|
||||
currentButtonColor = theme.colorScheme.error;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class OptionsGrid extends StatelessWidget {
|
||||
),
|
||||
child: Text(
|
||||
o,
|
||||
style: TextStyle(fontSize: 20, color: currentTextColor),
|
||||
style: theme.textTheme.titleMedium?.copyWith(color: currentTextColor),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user