Skip to content

Icon not centered in FaIcon when used as prefix icon #132

Description

@SeriousMonk

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

Any Idea to why this happens?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions