[auth] changes to display new icon on code_widget

This commit is contained in:
Aman Raj
2024-12-07 17:41:59 +05:30
parent 2fc2107bca
commit ff41f1c7f8

View File

@@ -442,13 +442,19 @@ class _CodeWidgetState extends State<CodeWidget> {
}
Widget _getIcon() {
final String iconData;
if (widget.code.display.isCustomIcon) {
iconData = widget.code.display.customIconData;
} else {
iconData = widget.code.issuer;
}
return Padding(
padding: _shouldShowLargeIcon
? EdgeInsets.only(left: widget.isCompactMode ? 12 : 16)
: const EdgeInsets.all(0),
child: IconUtils.instance.getIcon(
context,
safeDecode(widget.code.issuer).trim(),
safeDecode(iconData).trim(),
width: widget.isCompactMode
? (_shouldShowLargeIcon ? 32 : 24)
: (_shouldShowLargeIcon ? 42 : 24),