string_to_material_icon

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

string to material icon

String To Material Icon #
This package convert a string to an IconData to show its icon representation.
Instalation #
Include string_to_material_icon in your pubspec.yaml file:
dependencies:
flutter:
sdk: flutter
string_to_material_icon: version
copied to clipboard
Usage #
To use this package, just import it into your file and enjoy it.
import 'package:string_to_material_icon/string_to_material_icon.dart';

...

IconData? headphoneIcon = StringToMaterialIcon.getIconDataFromString('headphones');
Icon(headphoneIcon, size: 32)
...
copied to clipboard
The method getIconDataFromString can return an IconData - throwing an exception when the icon is not found.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.