fontawesomeicons flutter code example

Example 1: fontawsome flutter

dependencies:
  font_awesome_flutter: ^8.8.1

Example 2: font awesome flutter

dependencies:
  font_awesome_flutter: ^8.11.0

Example 3: font awsome flutter ,flutter font awsome

import 'package:font_awesome_flutter/font_awesome_flutter.dart';

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

Tags:

Misc Example