animations_plus library

Animations Plus - A comprehensive animation package for Flutter

This library provides a collection of pre-built animation widgets and utilities that make it easy to add smooth, performant animations to your Flutter apps with minimal boilerplate code.

Features

  • Pre-built animation widgets (fade, slide, scale, rotation, bounce, shimmer)
  • Animation utilities for chaining and staggering animations
  • Custom easing curves
  • Simple, intuitive API
  • Performance optimized for 60fps animations

Usage

import 'package:animations_plus/animations_plus.dart';

// Simple fade animation
FadeAnimation(
  child: Text('Hello World'),
)

// Slide animation with custom duration
SlideAnimation(
  direction: SlideDirection.left,
  duration: Duration(milliseconds: 800),
  child: Container(...),
)

Classes

AnimationChain
A controller that manages a sequence of animations
AnimationConfig
Configuration for animation behavior
AnimationUtils
Utility class with static helper methods for animations
BounceAnimation
A widget that provides bounce animations with elastic effects
BounceAnimationPresets
Preset bounce animations for common use cases
CustomCurves
Collection of custom animation curves
FadeAnimation
A widget that provides fade in/out animations
FadeAnimationPresets
Preset fade animations for common use cases
RotationAnimation
A widget that provides rotation animations
RotationAnimationPresets
Preset rotation animations for common use cases
ScaleAnimation
A widget that provides scale/zoom animations
ScaleAnimationPresets
Preset scale animations for common use cases
ShimmerAnimation
A widget that provides shimmer/loading animations
ShimmerAnimationPresets
Preset shimmer animations for common use cases
SimpleBounceAnimation
A simplified bounce animation widget with common presets
SimpleFadeAnimation
A simplified fade animation widget with common presets
SimpleRotationAnimation
A simplified rotation animation widget with common presets
SimpleScaleAnimation
A simplified scale animation widget with common presets
SimpleShimmerAnimation
A simplified shimmer animation widget with common presets
SimpleSlideAnimation
A simplified slide animation widget with common presets
SkeletonLoader
A widget that creates a skeleton loading effect
SlideAnimation
A widget that provides slide animations in various directions
SlideAnimationPresets
Preset slide animations for common use cases
SlideInOnVisible
A widget that slides in when it becomes visible on screen
StaggeredAnimationBuilder
Widget that provides staggered animations for its children
StaggeredAnimationController
A controller that manages staggered animations
StaggeredList
Widget that provides staggered list animations
TapToBounce
A widget that bounces when tapped
TapToRotate
A widget that rotates on tap
TapToScale
A widget that scales in when tapped
VisibilityDetector
Simple visibility detector for triggering animations
VisibilityInfo
Information about widget visibility

Enums

AnimationState
Animation state for tracking current status
AnimationTrigger
Animation trigger types
BounceType
Types of bounce animations
RotationDirection
Direction for rotation animations
ShimmerDirection
Direction of the shimmer effect
SlideDirection
Direction for slide animations
StaggeredListAnimationType
Types of animations available for staggered lists

Extensions

AnimationControllerExtensions on AnimationController
Extension methods for AnimationController

Typedefs

AnimationCallback = void Function()
Callback function type for animation events
AnimationStatusCallback = void Function(AnimationState state)
Callback function type for animation status changes
AnimationValueCallback = void Function(double value)
Callback function type for animation value changes