Crazy Button
Flutter widget to give wiggle animation to the button.
Installation
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
crazy_button: ^1.0.2
- Import the package and use it in your Flutter App.
import 'package:crazy_button/crazy_button.dart';
Preview
Example: Infinite Wiggle.
Example
CrazyButton(
infiniteShake: true,
child: Container(
height: 60,
width: 100,
decoration: BoxDecoration(
color: Colors.greenAccent,
borderRadius: BorderRadius.circular(10)),
child: const Center(
child: Icon(
Icons.ac_unit,
))),
)