awesome_shake_widget 1.1.0
awesome_shake_widget: ^1.1.0 copied to clipboard
A Flutter widget that provides shake animation and optional vibration effects, great for invalid forms, attention prompts, and user interaction feedback.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add awesome_shake_widget
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
awesome_shake_widget: ^1.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:awesome_shake_widget/enum/shake_preset.dart';
import 'package:awesome_shake_widget/enum/vibration_type.dart';
import 'package:awesome_shake_widget/shake_config.dart';
import 'package:awesome_shake_widget/shake_widget.dart';