Home > Back-end >  Flutter Font Awesome Icons Not Showing
Flutter Font Awesome Icons Not Showing

Time:12-15

I changed version , I did this steps ;

  1. Stopping the app
  2. Running flutter clean in your app directory
  3. Deleting the app from your simulator / emulator / device
  4. Rebuild & Deploy the app.

I tried everything but my font awesome package for flutter doesn't work.

pubspec.yaml file

This is pubspec.yaml

Widget file

This is the line which i use command

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:

  1. run flutter pub get in your terminal
  2. Stop your App
  3. 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,
              ),
            ),

Your result: image

  • Related