Add shake as a dependency to pubspec.yaml.
flutter pub get to download the package.
Then include Shake package in your code
Add Client ID and Secret
Open your AndroidManifest.xml file. Paste this and replace your-api-client-id and your-api-client-secret with the actual values you have in your workspace settings.
Open your workspace and in the Project Navigator, right click on Info.plist, and Open as › Source code. Paste this but replace your-api-client-id and your-api-client-secret with the actual values you have in your workspace settings.
If you are using code shrinking when building your application, add following ProGuard rule to the proguard-rules.pro file:
Building release .apk or .app using
flutter build will run code shrinking by default.
To start Shake, enable desired invocation methods and then call
Shake.start() like in the example below.
Shake Flutter supports devices with Android 4.2 (API 17) version and higher. On versions 6.0 (API 23) and lower screenshot will display just black screen.