icons_helper 0.0.2 copy "icons_helper: ^0.0.2" to clipboard
icons_helper: ^0.0.2 copied to clipboard

outdatedDart 1 only

This package's use case is to provide access to the full library of Icons and FontAwesomeIcons at runtime when the specific icons needed are not known at compile time. As such, all Tree Shaking is tot [...]

icons_helper #

Icons helper just takes care of the reflection that lets you easily access icons by string names since using Mirror, etc every time you need to do it is excessive. And writing and throwing utility functions like this as globals in your code is just bad form.

Getting Started #

For help getting started with Flutter, view the online documentation.

27
likes
0
pub points
76%
popularity

Publisher

verified publishervoltaireapp.com

This package's use case is to provide access to the full library of Icons and FontAwesomeIcons at runtime when the specific icons needed are not known at compile time. As such, all Tree Shaking is totally worked around/defeated for Icons and FontAwesomeIcons, so know that before you use the library. But since in our application, for example, the icon names come in from our backend and we don't want to have to re-release each time it specifies a new icon, we are GOOD with that. This is intentional so we can specify a new icon to be displayed just by sending that new text string in our push notification/record. This is a convenience package that provides bracket notiation access to Material Design Icons and Font Awesome Flutter icons (via @brianegan's font_awesome_flutter package). For now, I have just statically generated the Map to map string names to member names. This means any new icons won't be automatically discovered. There's a way to use codegen and mirror in a non-flutter dart app to generate this and then output/maintain them, but just using a google sheet and cut and pasting was faster for something I personally don't need to update often. That sheet is here at https://docs.google.com/spreadsheets/d/1IpWJytpkrJI9_9hwPKY5oXJLRLGjQuG3pUP7eUIqHn4/edit?usp=sharing. I started writing such a utility but gave up because it wasn't worth the time.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, flutter_driver, font_awesome_flutter

More

Packages that depend on icons_helper