fluttercommunity / font_awesome_flutter

The Font Awesome Icon pack available as Flutter Icons
Other
831 stars 233 forks source link

Icon jumps when moved #263

Open Gieted opened 2 months ago

Gieted commented 2 months ago

On Web when the FaIcon widget is moved (e.g. by AnimatedPositioned) the icon jumps up/down by 1 pixel, slightly out-of-sync with the position change.

To Reproduce Steps to reproduce the behavior:

  1. On Flutter Web place FaIcon on AnimatedPositioned and move it.
  2. See the jump

Expected behavior The icon should not jump after its position has changed.

Screenshots Focus your sight on the volume icon (from Font Awesome). For reference the "4K" icon on the left uses a nomarl Text widget and it doesn't jump.

https://github.com/fluttercommunity/font_awesome_flutter/assets/35242233/6ce6a454-4726-45fa-905b-8f3c6d8b7f72

**Desktop

Only icons with horizontal aspect ratio (like the volumeHigh or userGroup) seems to be affected.