mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 23:39:30 +00:00
Update parser for simple-icons
This commit is contained in:
parent
3de1c8011a
commit
28c29a0c3a
@ -200,7 +200,7 @@ class IconUtils {
|
|||||||
final simpleIconData = await rootBundle
|
final simpleIconData = await rootBundle
|
||||||
.loadString('assets/simple-icons/_data/simple-icons.json');
|
.loadString('assets/simple-icons/_data/simple-icons.json');
|
||||||
final simpleIcons = json.decode(simpleIconData);
|
final simpleIcons = json.decode(simpleIconData);
|
||||||
for (final icon in simpleIcons["icons"]) {
|
for (final icon in simpleIcons) {
|
||||||
_simpleIcons[icon["title"]
|
_simpleIcons[icon["title"]
|
||||||
.toString()
|
.toString()
|
||||||
.replaceAll(' ', '')
|
.replaceAll(' ', '')
|
||||||
@ -227,8 +227,8 @@ class IconUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e, s) {
|
||||||
Logger("IconUtils").severe("Error loading icons", e);
|
Logger("IconUtils").severe("Error loading icons", e, s);
|
||||||
if (kDebugMode) {
|
if (kDebugMode) {
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user