heart_overlay 1.2.0 copy "heart_overlay: ^1.2.0" to clipboard
heart_overlay: ^1.2.0 copied to clipboard

The HeartOverlay widget can be used to create a fun and interactive overlay that displays a heart animation when the user taps on the screen.

1.2.0 #

  • Deprecated the [BackgroundWidget] to use [child] instead.
  • Support for displaying any kind of widget instead of just icons.
  • Mirrored the horizontal positioning of the [horizontalOffset] so that negative numbers offset the position to the left and positive offsets position to the right.
  • [Size] is now relative:
    • Defaults to 80 when [icon] is any kind of widget including [Icon].
    • Defaults to 50 when [icon] is of type [Text], size in this case is [TextStyle].
  • Upgraded the sdk version documentation.

[#Next]

  • Introduce [PauseDuration] parameter - The amount of time the icon stays on the screen before the animation starts which'll default to 0 seconds.
  • Add a new Tap Down Type called [TapDownType.doubleThenSingle] which triggers by a double tap then goes to single tap if the tap succession is within a certain amount of time.
  • Support for light weight animated Icons that have splashes.
  • Support for icons to be vertically spaced out when created at about the same position.

1.1.0 #

  • Added a tap down type selector which can be either [TapDownType.single] or [TapDownType.double]. It is set to [TapDownType.single] by default, but will change to [TapDownType.double] on the next update.
  • Decreased the default cache extent from 35 to 20.
  • Updated documentation.

1.0.1 #

  • Added a callback funtion that gets triggered whenever an icon is displayed on screen along with a parameter that gives the number of hearts that have been formed before exceeding the cache extent.

1.0.0+1 #

  • Few refactorings

1.0.0 #

  • Initial release
11
likes
0
pub points
78%
popularity

Publisher

unverified uploader

The HeartOverlay widget can be used to create a fun and interactive overlay that displays a heart animation when the user taps on the screen.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on heart_overlay