I'm trying to make a list of icon buttons that returns a string when tapped to change my icon components visible icon via a conditional builder via sting-based values. My selector is the other issue I have, I cannot figure out how to dynamically show a list of icons since icon is not a valid variable anywhere except for component parameters. I wanted to use a datatype so I could use an icon and tie that data to a list of tags for searching capabilities. For example, if the user searches "cloud" or "weather" any icon with those tags will appear. I also want to categorize them. This seems extremely difficult in flutterflow considering there is not Icons a valid datatype anywhere except components and I can't use it in the Data Types section of FlutterFlow. I have about 700 icons and all of them are from different libraries (Material, FontAwesome, Custom, Etc) and I was wondering if anyone knew how to do something like this.
Searchable Icon Selector List with Tags and Category?
Custom Code
I was thinking maybe I could use a custom function and define the Name, Icon, and the tags. I tried something similar but I could not figure out how to reference custom icons or font awesome icons in code. I know material icons are defined wiht "Icon.iconName" but for custom I tried FFCustomIcons, CustomIcons, _customIcons, nothing was working. If anyone knows how to do this I could probably figure out the rest in the function IF I can even return Icons as a list given flutterlfow allows this. Still haven't figured this out. Any ideas?
Yes
2
1 reply