Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.