Closed johnareid54 closed 3 years ago
Hi, @johnareid54.
Yes, it does indeed have to do with the number of words of the icon name. Since version 2.0, names are camelCase instead of the original ones.
So
Icon(LineIcons.byName('infoCircle'));
should work properly.
Out of curiosity, why such a long statement instead of LineIcon.infoCircle()
?
Thanks.
Thanks for the great answer!
Out of curiosity, why such a long statement instead of LineIcon.infoCircle()? I guess I did not read the documentation all that well.
You're welcome!
I'd suggest to take a look to the values
property, which will provide you with a list of the available names.
Cheers
I am having a problem calling the icons by name. For example: Icon(LineIcons.byName('home')); works Icon(LineIcons.byName('info-circle')); does not works
It seems to be related to the name having more than one word in the string.
Any suggestions?