grade colors sharing works fine ahh

This commit is contained in:
Kima
2023-09-27 23:02:28 +02:00
parent 14ce4c82fb
commit 64fb22de74
4 changed files with 11 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ class ShareProvider extends ChangeNotifier {
const Color(0xFF3D7BF4).value,
};
SharedTheme theme = SharedTheme.fromJson(themeJson, gradeColors.json);
SharedTheme theme = SharedTheme.fromJson(themeJson, gradeColors);
FilcAPI.addSharedTheme(theme);
return theme;
@@ -57,7 +57,8 @@ class ShareProvider extends ChangeNotifier {
await FilcAPI.getSharedGradeColors(themeJson['grade_colors_id']);
if (gradeColorsJson != null) {
SharedTheme theme = SharedTheme.fromJson(themeJson, gradeColorsJson);
SharedTheme theme = SharedTheme.fromJson(
themeJson, SharedGradeColors.fromJson(gradeColorsJson));
return theme;
}
}