konami_detector

Last updated:

0 purchases

konami_detector Image
konami_detector Images
Add to Cart

Description:

konami detector

Konami Detector #
Author: Jop Middelkamp #
A package to detect konami codes swipes and provides you with callbacks to handle when one has been triggered.
Usage #
KonamiDetector(
codes: [
if (enviroment != Environment.production) TestCrashKonamiCode(),
ShowDeviceInfoKonamiCode(),
],
child: Container(
...
),
)
copied to clipboard
class ShowDeviceInfoKonamiCode extends KonamiCode {
ShowDeviceInfoKonamiCode()
: super(
codes: const [
KonamiCodeInput.up,
KonamiCodeInput.up,
KonamiCodeInput.down,
KonamiCodeInput.down,
KonamiCodeInput.left,
KonamiCodeInput.right,
],
onMatch: showDeviceInfoDialog,
);
}
copied to clipboard

License:

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

Files In This Product:

Customer Reviews

There are no reviews.