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

Libraries

easter_egg_trigger