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,
),
CodePudding user response:
It should be in Icon()
widget for it to work
...
child: Icon(FontAwesomeIcons.twitter, color: Colors.blue,)
..