A Flutter package that provides a collection of customizable and smooth animations for various UI elements such as buttons, loading indicators, page transitions, fade transitions, rotation transitions, and scale transitions.
- Button Animations: Pulse, Bounce, and Rotation animations for buttons.
- Fade Transitions: Smooth fade transitions for page navigation.
- Loading Indicators: Spinning, Pulsing, and Bouncing animations for loading indicators.
- Page Transitions: Slide, Fade, Scale, and Rotation transitions for page navigation.
- Rotation Transitions: Smooth rotation transitions for page navigation.
- Scale Transitions: Smooth scale transitions for page navigation.
Add this to your package's pubspec.yaml
file:
dependencies:
darturbation:
git:
url: https://github.com/protheeuz/darturbation.git
ref: main
import 'package:darturbation/darturbation.dart';
// Use CustomPageTransition for smooth page transitions
Navigator.of(context).push(CustomPageTransition(page: YourNextPage(), transitionType: PageTransitionType.slide));
import 'package:darturbation/darturbation.dart';
// Use AnimatedButton for interactive button animations
AnimatedButton(
text: 'Press Me',
onPressed: () {
// Your onPressed logic here
},
animationType: ButtonAnimationType.pulse, // Options: pulse, bounce, rotation
);
import 'package:darturbation/darturbation.dart';
// Use LoadingIndicator for custom loading animations
LoadingIndicator(
indicatorType: LoadingIndicatorType.spinning, // Options: spinning, pulsing, bouncing
color: Colors.blue,
size: 50.0,
);
import 'package:darturbation/darturbation.dart';
// Use FadeTransitionPage for fade transitions
Navigator.of(context).push(FadeTransitionPage(page: YourNextPage()));
import 'package:darturbation/darturbation.dart';
// Use ScaleTransitionPage for scale transitions
Navigator.of(context).push(ScaleTransitionPage(page: YourNextPage()));
import 'package:darturbation/darturbation.dart';
// Use RotationTransitionPage for rotation transitions
Navigator.of(context).push(RotationTransitionPage(page: YourNextPage()));
Check the example directory for a complete example of how to use this package.