easter_egg_trigger 1.0.0
easter_egg_trigger: ^1.0.0 copied to clipboard

A widget that trigger an action when a secret gesture combination is detected

An Easter Egg trigger widget #

This Easter egg trigger widget allow you to easily call a function when a combination of gestures have been detected on a given widget

  • Please follow this link to find a working and concrete example : The Flutter Scaffold by Mr# And look at the ./lib/components/images/main.logo.dart file

  • Customizable ! Just provide a List to add your own gestures

  • It can't be easier to use :

    EasterEggTrigger(
      action: () => print("Easter Egg !!!"),
      child: Image.network('https://picsum.photos/250?image=9')
    );

This example will print Easter Egg !!! in your console when you do these gestures on the image:

  • Swipe Up, Swipe Up, Swipe Down, Swipe Down,

  • Swipe Left, Swipe Right, Swipe Left, Swipe Right,

  • Tap, Long Press

Yes by default this is the famous Konami code: ↑ ↑ ↓ ↓ ← → ← → B A note that I replaced B button by Tap and A button by Long Press

4
likes
100
pub points
48%
popularity

Publisher

Unknown

A widget that trigger an action when a secret gesture combination is detected

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on easter_egg_trigger