dynamic_fa_icons 1.3.0+6 copy "dynamic_fa_icons: ^1.3.0+6" to clipboard
dynamic_fa_icons: ^1.3.0+6 copied to clipboard

Original package to insert FontAwesome icons by name in a Flutter app, for example when the icons are not known at compile time.

Dynamic FontAwesome icons in Flutter #

Original package to insert FontAwesome icons dynamically in a Flutter app when the icons are not known at compile time.

The version of icons is: 6.5.1

Buy Me A Coffee

Usage #

  • Add dynamic_fa_icons and font_awesome_flutter to pubspec.yaml
  • All icons names must 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 and attribution #

5
likes
150
points
1
downloads

Publisher

verified publisheredoardovignati.it

Weekly Downloads

Original package to insert FontAwesome icons by name in a Flutter app, for example when the icons are not known at compile time.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter, font_awesome_flutter

More

Packages that depend on dynamic_fa_icons