Skip to content

Commit 5a0a8a9

Browse files
committed
Replace value call with toARGB32
1 parent 8a2b91a commit 5a0a8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/model/theme/theme_settings.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ThemeSettings {
2222
final bool useSystemTheme;
2323

2424
static Color _colorFromJson(int value) => Color(value);
25-
static int _colorToJson(Color color) => color.value;
25+
static int _colorToJson(Color color) => color.toARGB32();
2626

2727
factory ThemeSettings.fromJson(Map<String, dynamic> json) =>
2828
_$ThemeSettingsFromJson(json);

0 commit comments

Comments
 (0)