A Flutter widget that provides shake animation and optional vibration effects, great for invalid forms, attention prompts, and user interaction feedback.
Package selection guidance compiled from public package information, community data, and project usage.
A Flutter widget that adds shake animations and optional vibration feedback to UI elements. Ideal for drawing attention to invalid form inputs, prompting user action, or providing interactive feedback. The widget is easy to integrate and supports both Android and iOS platforms. It enhances user experience by offering visual and haptic responses with minimal setup. Designed for simplicity and effectiveness in common interaction scenarios.
Use cases
Form validation alerts
User input prompts
Interactive button feedback
Error state notifications
Onboarding guidance
Key features
Shake animation effect
Optional vibration support
Cross-platform compatibility
Simple API integration
Customizable animation duration
Responsive design support
Suitable for
Developers building interactive forms
UX designers enhancing feedback mechanisms
Apps requiring attention-grabbing cues
Mobile applications targeting Android and iOS
Projects focused on intuitive user interactions
Considerations
May cause distraction if overused
Vibration requires permission on some devices
Animation performance depends on device capabilities
Not suitable for accessibility-critical components
Best used sparingly to maintain UX clarity
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
🚀 awesome_shake_widget
A customizable Flutter widget that adds shake animations with haptic and vibration feedback. Perfect for invalid forms, error indicators, or drawing attention to UI components.
✨ Features
Shake any widget on demand
Built-in presets: light, medium, heavy
Optional vibration (custom or haptic)
Fully customizable offset, pattern & intensities
Easy to trigger using a GlobalKey
📦 Installation
dependencies:awesome_shake_widget:^1.0.1
Run:
flutter pub get
🧪 Usage
1️⃣ Standard (Shake + Vibration)
By using the built-in presets — light, medium, heavy and custom — you can quickly apply different vibration intensities and patterns, perfectly paired with UI shake animations for a dynamic and responsive user experience.
If you only want the visual shake effect without vibration, you can set vibrationType to VibrationType.none using the ShakeConfig. To customize the intensity of the shake, adjust the offset value — higher values will produce a stronger visual effect.
3️⃣ Advanced Configuration: Full Control Over Visual and Vibration Effects
You can also create custom vibration patterns by setting vibrationType to VibrationType.custom, and providing your own pattern and intensities. This gives you full control over the vibration behavior.