improve ui

This commit is contained in:
nyne
2024-10-10 10:13:35 +08:00
parent df559e4cca
commit f228c7ee17
12 changed files with 126 additions and 105 deletions

View File

@@ -51,9 +51,9 @@ class _Appdata {
return;
}
var json = jsonDecode(await file.readAsString());
for(var key in json['settings'].keys) {
if(json[key] != null) {
settings[key] = json[key];
for(var key in (json['settings'] as Map<String, dynamic>).keys) {
if(json['settings'][key] != null) {
settings[key] = json['settings'][key];
}
}
searchHistory = List.from(json['searchHistory']);