-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const Map/List of all IconData #39
Comments
Hi @jlnrrg, you can get icons name using getIconsName() to create your picker (but maybe a real list is better for you). |
You can get icon list in https://github.com/ziofat/material_design_icons_flutter/blob/master/lib/icon_map.dart, though it is not satisfied to |
thanks for the advice. Of cause it is really easy to transform. I was speaking more from the performance sie of things (even though i have no measure how much the const would effect) |
As it looks to me the package is auto generated based on the MDI font.
(Or that is how i've done it with the simple icons package)
Please consider adding a static list, where one can get all the icons at one.
Example:
Every user of the library could implement this themself, but with so many icons this would take a lot of time.
Under the premise that the
mdi.dart
is autogenerated, this might be just one line of code for you 🙏 .Example Use Case:
There is the icon_picker which takes a Map<String, IconData> of icons. For performance improvements an already existing const List or Map of IconData might be beneficial.
The text was updated successfully, but these errors were encountered: