font asome flutter code example
Example 1: fontawsome flutter
dependencies:
font_awesome_flutter: ^8.8.1
Example 2: 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"); }
);
}
}