Skip to content
Snippets Groups Projects
Commit 5e96f7bb authored by Theo Wiese's avatar Theo Wiese
Browse files

Use correct colors from scheme to work with dark mode

parent 0e9457c6
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class LessonWidget extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Material(
elevation: 2,
color: Theme.of(context).primaryColor,
color: Theme.of(context).colorScheme.primary,
borderRadius: BorderRadius.circular(6),
clipBehavior: Clip.antiAlias,
child: InkWell(
......
......@@ -13,7 +13,7 @@ class LessonChip extends StatelessWidget {
required bool pressable,
}) {
final theme = Theme.of(context);
return pressable ? theme.primaryColor : theme.iconTheme.color!;
return pressable ? theme.colorScheme.primary : theme.iconTheme.color!;
}
static WidgetStateColor getTextColor(BuildContext context) =>
......
......@@ -22,7 +22,10 @@ class LessonLabel extends StatelessWidget {
const TextSpan(text: '\n'),
TextSpan(text: lecture),
],
style: Theme.of(context).primaryTextTheme.bodySmall!,
style: Theme.of(context)
.primaryTextTheme
.bodySmall!
.copyWith(color: Theme.of(context).colorScheme.onPrimary),
),
textAlign: TextAlign.center,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment