working on themes

This commit is contained in:
Rene Kievits
2025-10-31 07:39:32 +01:00
parent 4a6fce37b2
commit ad61292263
4 changed files with 44 additions and 18 deletions

View File

@@ -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,
),
),