easter_egg_trigger 2.0.0 copy "easter_egg_trigger: ^2.0.0" to clipboard
easter_egg_trigger: ^2.0.0 copied to clipboard

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

An Easter Egg trigger widget #

2.0.0 Update #

  • Enum "EasterEggTriggers" has been renamed to "GestureEvent"
  • Our beloved widget now handle Keyboard keys !
  • Please check the example section to see it in action :)

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

  • Customizable ! Just provide a list of GestureEvent and/or LogicalKeyboardKey to create your own secret combination

  • 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

15
likes
150
points
1.27k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, simple_keyboard_listener

More

Packages that depend on easter_egg_trigger