string_to_icon 1.0.0
string_to_icon: ^1.0.0 copied to clipboard
A simple, lightweight Flutter package to map string names to Material Design Icons, with fallback support for unknown icons.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add string_to_iconThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
string_to_icon: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:string_to_icon/string_to_icon.dart';