-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon not centered in FaIcon when used as prefix icon #132
Comments
Out of curiosity: does this happen with material icons as well? |
Using Icon instead of FaIcon fixed it. Thanks! |
Reopening, this seems to be a bug with |
You can use it like below, this will align it correctly.
|
I just published version 10.0.0-beta on pub, which should resolve this issue. However, since this is a change to |
First of all, thanks for your help @stedekay! |
@stedekay this is what your code looks like for me: |
Mmh, interesting. Thanks for looking at it again! |
Hi there, I just installed FontAwesomeIcon (4.7), solution with padding is working. However if we don't apply any padding, this is not working and the bug seems to be there |
Hi @EpiSayLaCata, thanks for testing. Can you give a short code example for an issue with the padding which worked in version 9.2.0 or with material's |
The fix seems to work, but I've noticed quite a performance penalty - especially when many icons are used. I've opened up an issue over at flutter/flutter#99830 intending to make FaIcon obsolete. |
Issue is still in |
I had a fix ready, but it was too resource intensive to be a viable option. The proposal regarding rectangular icon support is linked above your comment, please upvote it, so it gets a higher priority from the flutter team. I'd love to get rid of |
I have a TextFormField and am using the FaIcon widget as prefix icon:
This results in the FontAwesomeIcon to be aligned top-left inside the FaIcon widget like so:
Any Idea to why this happens?
The text was updated successfully, but these errors were encountered: