I changed version , I did this steps ;
- Stopping the app
- Running flutter clean in your app directory
- Deleting the app from your simulator / emulator / device
- Rebuild & Deploy the app.
I tried everything but my font awesome package for flutter doesn't work.
pubspec.yaml file
Widget file
CodePudding user response:
Use This Code
EX:
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
FaIcon(FontAwesomeIcons.venus,size: 50.0,),
CodePudding user response:
Your code is correct.
Try following steps:
- run
flutter pub get
in your terminal - Stop your App
- Restart your app and see the result output
pubspec.yaml file
dependencies:
flutter:
sdk: flutter
font_awesome_flutter: ^9.2.0
Widget:
Padding(
padding: const EdgeInsets.all(8.0),
child: FaIcon(
FontAwesomeIcons.venus,
),
),