This commit is contained in:
2026-03-22 17:25:22 +03:00
parent f013753f80
commit d67d8cb89c
3 changed files with 135 additions and 34 deletions
+5 -2
View File
@@ -16,7 +16,6 @@ class CardColorService {
static const defaultGradient = GradientType.sweep;
static Future<(Color, Color, GradientType)> load() async {
final prefs = await SharedPreferences.getInstance();
final c1 = prefs.getInt(_key1);
@@ -29,7 +28,11 @@ class CardColorService {
);
}
static Future<void> save(Color primary, Color secondary, GradientType gradient) async {
static Future<void> save(
Color primary,
Color secondary,
GradientType gradient,
) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setInt(_key1, primary.value);
await prefs.setInt(_key2, secondary.value);