shake for flutter
flutter plugin for shake.
how to use
install shake
add shake to your pubspec.yaml
file.
dependencies:
shake_flutter: ^15.0.0
install package by running command in terminal.
flutter packages get
start shake
add shake import.
import 'package:shake_flutter/shake_flutter.dart';
call shake.start()
method in the main.dart
file.
void main() {
widgetsflutterbinding.ensureinitialized();
shake.setinvokeshakeonshakedeviceevent(true);
shake.setshowfloatingreportbutton(false);
shake.setinvokeshakeonscreenshot(false);
shake.start('client-id', 'client-secret');
runapp(myapp());
}
replace client-id
and client-secret
with the actual values you have in your workspace settings.
documentation
visit documentation for more details.
Comments are closed.