fluttercommunity / fluttercommunity/font_awesome_flutter

Icon not centered in FaIcon when used as prefix icon

Open
#132 14 comments 0 reactions 1 assignee Claimed by @brianegan View on GitHub
Dominant language
Dart
Stars
905
Forks
293
PR merge metrics
No merged PRs in 30d

Description

I have a TextFormField and am using the FaIcon widget as prefix icon:

TextFormField(
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.only(top: 14.0),
prefixIcon: FaIcon(
FontAwesomeIcons.penNib,
color: themeOrangeColor,
),
),
)
This results in the FontAwesomeIcon to be aligned top-left inside the FaIcon widget like so:
![Capture](https://user-images.githubusercontent.com/26068515/98672605-57ac4780-2356-11eb-8eff-6562c8256eb2.PNG)

Any Idea to why this happens?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.