color (theme) fixes, NOT FINISHED

This commit is contained in:
Kima
2024-03-05 23:08:47 +01:00
parent 0dc9a0640a
commit e2ac4303f3
17 changed files with 57 additions and 39 deletions

View File

@@ -1,4 +1,3 @@
import 'package:refilc/utils/color.dart';
import 'package:refilc_kreta_api/models/note.dart';
import 'package:refilc_mobile_ui/common/profile_image/profile_image.dart';
import 'package:refilc/utils/format.dart';
@@ -31,12 +30,13 @@ class NoteView extends StatelessWidget {
: note.teacher.name) ??
'',
radius: 22.0,
backgroundColor: ColorUtils.stringToColor(
(note.teacher.isRenamed
? note.teacher.renamedTo
: note.teacher.name) ??
'',
),
backgroundColor: Theme.of(context).colorScheme.secondary,
// backgroundColor: ColorUtils.stringToColor(
// (note.teacher.isRenamed
// ? note.teacher.renamedTo
// : note.teacher.name) ??
// '',
// ),
),
title: Text(
note.title,