magnetic_button 0.0.6 copy "magnetic_button: ^0.0.6" to clipboard
magnetic_button: ^0.0.6 copied to clipboard

A Flutter package that provides a button with a unique "magnetic" hover effect.

0.0.1 #

  • Magnetic Button initial release.

0.0.2 #

  • Description Update

0.0.3 #

  • Initial Feature Updates with Bugs

0.0.4 #

Added #

  • New properties for the magnetic widget:
    • duration: The duration of the animation.
    • curve: The curve of the animation.
    • height: The height of the magnetic widget. This is an optional parameter.
    • width: The width of the magnetic widget. This is an optional parameter.
    • padding: The padding around the magnetic widget. This is an optional parameter.
    • mobile: A boolean value indicating whether the widget should respond to long press events on mobile(not yet tested for functionality). If false, only Web will work.

Improved #

  • Performance optimizations in the code:
    • reduced the number of times renderBox.localToGlobal(Offset.zero) is called
    • moved the calculations for relX and relY inside the if (distanceMouseButton < distanceToTrigger) statement, so they’re only calculated if necessary.

0.0.5 #

Added #

  • New properties for the magnetic widget:
    • onChanged: A nullable callback function called when an Offset change event occurs.

0.0.6 #

Added #

  • Bug Fix

To Do #

  • Implement the mx and my variables in the code for additional user experience.
  • test hold feature on a live mobile device.
5
likes
0
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a button with a unique "magnetic" hover effect.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on magnetic_button