dynamic_fa_icons 1.2.0+3 copy "dynamic_fa_icons: ^1.2.0+3" to clipboard
dynamic_fa_icons: ^1.2.0+3 copied to clipboard

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

example/main.dart

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

void main() {
  runApp(MaterialApp(
    home: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      body: IconButton(
          // Use the FaIcon Widget + DynamicFaIcons class for the IconData
          icon: FaIcon(DynamicFaIcons.getIconFromName('pizza-slice')),
          onPressed: () {
            print('Pressed');
          }),
    );
  }
}
5
likes
0
pub points
83%
popularity

Publisher

verified publisheredoardovignati.it

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

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, font_awesome_flutter

More

Packages that depend on dynamic_fa_icons