easter_egg_trigger

Creator: coderz1093

Last updated:

0 purchases

easter_egg_trigger Image
easter_egg_trigger Images

Languages

Categories

Add to Cart

Description:

easter egg trigger

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')
);
copied to clipboard
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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.