awesome_shake_widget
1.1.1, released 8 months ago by an unverified publisher
A Flutter widget providing shake animations with optional haptic and vibration feedback.
What it does
Adds a shake animation and optional vibration effects to any Flutter widget. Can be triggered on demand using a GlobalKey with built-in presets like light, medium, and heavy.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to indicate invalid form inputs or validation errors.
- You want to draw user attention to specific UI components.
Skip it when
- You need complex physics-based multi-directional motion engines.
- Your application requires target platforms outside of Android and iOS.
Strengths
- Easy to trigger via GlobalKey.
- Supports built-in presets and customizable offsets and vibrations.
Weaknesses
- Limited platform support (Android and iOS only).
- Custom vibration patterns/intensities are Android only.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
final shakeKey = GlobalKey<ShakeWidgetState>();
ShakeWidget(
key: shakeKey,
preset: ShakePreset.medium,
child: Text("Tap Me"),
);
// Trigger shake:
shakeKey.currentState?.shake();Alternatives
Packages that do the same job and could replace awesome_shake_widget.
- lottie
Render After Effects JSON animations natively in Flutter.
96Compare - rive_native
Rive's native runtime and renderer for Flutter.
82Compare - animated_digit
A Flutter widget for scroll-animated numbers and digits.
68Compare - flutter_confetti
Provides confetti particle animations for Flutter apps.
68Compare
Works with
Packages commonly used together with awesome_shake_widget: ones it builds on, ones built on it, and its own family.