Porgress use dynamic color

This commit is contained in:
LollipopKit
2021-11-01 15:26:29 +08:00
parent 1cd69c8f44
commit e7d87b40b8
11 changed files with 40 additions and 31 deletions

View File

@@ -11,8 +11,7 @@ class SnippetStore extends PersistentStore {
}
List<Snippet> fetch() {
return getSnippetList(
json.decode(box.get('snippet', defaultValue: '[]')!));
return getSnippetList(json.decode(box.get('snippet', defaultValue: '[]')!));
}
void delete(Snippet s) {
@@ -30,4 +29,4 @@ class SnippetStore extends PersistentStore {
int index(Snippet s) => fetch().indexWhere((e) => e.name == s.name);
bool have(Snippet s) => index(s) != -1;
}
}