Compare commits
3 Commits
rust_proce
...
v2.0.27
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df0964ba70 | ||
|
|
2407552c1c | ||
|
|
2fa0f27581 |
@@ -83,13 +83,19 @@ class IconUtils {
|
|||||||
.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["icons"]) {
|
||||||
_simpleIcons[icon["title"].toString().toLowerCase()] = icon["hex"];
|
_simpleIcons[icon["title"]
|
||||||
|
.toString()
|
||||||
|
.replaceAll(' ', '')
|
||||||
|
.toLowerCase()] = icon["hex"];
|
||||||
}
|
}
|
||||||
final customIconData = await rootBundle
|
final customIconData = await rootBundle
|
||||||
.loadString('assets/custom-icons/_data/custom-icons.json');
|
.loadString('assets/custom-icons/_data/custom-icons.json');
|
||||||
final customIcons = json.decode(customIconData);
|
final customIcons = json.decode(customIconData);
|
||||||
for (final icon in customIcons["icons"]) {
|
for (final icon in customIcons["icons"]) {
|
||||||
_customIcons[icon["title"].toString().toLowerCase()] = CustomIconData(
|
_customIcons[icon["title"]
|
||||||
|
.toString()
|
||||||
|
.replaceAll(' ', '')
|
||||||
|
.toLowerCase()] = CustomIconData(
|
||||||
icon["slug"],
|
icon["slug"],
|
||||||
icon["hex"],
|
icon["hex"],
|
||||||
);
|
);
|
||||||
@@ -108,7 +114,7 @@ class IconUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String _getProviderTitle(String provider) {
|
String _getProviderTitle(String provider) {
|
||||||
return provider.split(RegExp(r'[.(]'))[0].trim().toLowerCase();
|
return provider.split(RegExp(r'[.(]'))[0].replaceAll(' ', '').toLowerCase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: ente_auth
|
name: ente_auth
|
||||||
description: ente two-factor authenticator
|
description: ente two-factor authenticator
|
||||||
version: 2.0.26+226
|
version: 2.0.27+227
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user