Prioritize custom icons
This commit is contained in:
parent
400de2d20e
commit
1c5d4201ea
|
@ -20,18 +20,18 @@ class IconUtils {
|
||||||
|
|
||||||
Widget getIcon(String provider) {
|
Widget getIcon(String provider) {
|
||||||
final title = _getProviderTitle(provider);
|
final title = _getProviderTitle(provider);
|
||||||
if (_simpleIcons.containsKey(title)) {
|
if (_customIcons.containsKey(title)) {
|
||||||
return _getSVGIcon(
|
|
||||||
"assets/simple-icons/icons/$title.svg",
|
|
||||||
title,
|
|
||||||
_simpleIcons[title]!,
|
|
||||||
);
|
|
||||||
} else if (_customIcons.containsKey(title)) {
|
|
||||||
return _getSVGIcon(
|
return _getSVGIcon(
|
||||||
"assets/custom-icons/icons/$title.svg",
|
"assets/custom-icons/icons/$title.svg",
|
||||||
title,
|
title,
|
||||||
_customIcons[title]!,
|
_customIcons[title]!,
|
||||||
);
|
);
|
||||||
|
} else if (_simpleIcons.containsKey(title)) {
|
||||||
|
return _getSVGIcon(
|
||||||
|
"assets/simple-icons/icons/$title.svg",
|
||||||
|
title,
|
||||||
|
_simpleIcons[title]!,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue