Home > Software engineering >  What is the best efficient way I use twitter Icon in flutter?
What is the best efficient way I use twitter Icon in flutter?

Time:10-06

Using the library font_awesome_flutter, we know can find most social media logos. Among them, we got the twitter logo below this line.

FontAwesomeIcons.twitter;
FontAwesomeIcons.twitterSquare;

I forget mentioned these line. After adding anyone, we should do this also run in our terminal

 pub clean 

And then

pub get update

CodePudding user response:

Try below code:

       const Icon(
          FontAwesomeIcons.twitter,
          size: 30,
        ),
        const Icon(
          FontAwesomeIcons.squareTwitter,
          size: 30,
        ),
  

Result-> image

CodePudding user response:

It should be in Icon() widget for it to work

...
child: Icon(FontAwesomeIcons.twitter, color: Colors.blue,)
..
  • Related