dynamic_fa_icons 1.0.0+1 copy "dynamic_fa_icons: ^1.0.0+1" to clipboard
dynamic_fa_icons: ^1.0.0+1 copied to clipboard

outdated

Insert FontAwesome icons dynamically in Flutter app when the icons are not known at compile time.

Dynamic FontAwesome icons in Flutter #

Insert FontAwesome icons dynamically in Flutter app when the icons are not known at compile time.

The version of icons is: 6.1.0

Usage #

  • Add dynamic_fa_icons to pubspec.yaml
  • Add font_awesome_flutter to pubspec.yaml
  • All icons namse should be in the same format you can find on fontawesome.com (e.g. pizza-slice)

Example #

import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:dynamic_fa_icons/dynamic_fa_icons.dart';

class MyWidget extends StatelessWidget {
  Widget build(BuildContext context) {
    return IconButton(
      // Use the FaIcon Widget + DynamicFaIcons class for the IconData
        icon: FaIcon(DynamicFaIcons.getIconFromName("pizza-slice")),
        onPressed: () {
          print("Pressed");
        }
    );
  }
}

References #

5
likes
0
pub points
83%
popularity

Publisher

verified publisheredoardovignati.it

Insert FontAwesome icons dynamically in Flutter app when the icons are not known at compile time.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

font_awesome_flutter

More

Packages that depend on dynamic_fa_icons