mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
stableee
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user