Skip to content
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

Actual Icon height is greater than size #270

Open
Noah765 opened this issue Jan 12, 2025 · 0 comments
Open

Actual Icon height is greater than size #270

Noah765 opened this issue Jan 12, 2025 · 0 comments

Comments

@Noah765
Copy link

Noah765 commented Jan 12, 2025

[Describe the bug
FaIcon widgets are bigger than expected. This widget: FaIcon(FontAwesomeIcons.one, size: 200), for example, renders at about 100x209 pixels.

To reproduce
In the following example you can clearly see that the height of the container is greater than 200 pixels. Using the Flutter devtools, you can see that the size of the FaIcon widget is 100x209 pixels.

Container(
  decoration: BoxDecoration(border: Border.all()),
  child: Row(
    mainAxisSize: MainAxisSize.min,
    children: [
      const FaIcon(FontAwesomeIcons.one, size: 200),
      Container(width: 10, height: 200, color: Colors.red),
    ],
  ),
),

Expected behavior
I would expect the height of the icon in the example to be 200 pixels

Screenshots
font-awesom-size

Desktop
Taken from flutter doctor:

Flutter (Channel stable, 3.24.4, on NixOS 25.05 (Warbler) 6.6.64, locale en_US.UTF-8)

I do not currently have the necessary tools installed to run this example in debug mode on any platform other than Linux, although I can confirm that this problem is also present when building for the web, with the same observation as on my NixOS desktop with the example above.

Additional notes
#144 fixes this issue.](#144)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant