philiprehberger_animation_kit 0.1.0 copy "philiprehberger_animation_kit: ^0.1.0" to clipboard
philiprehberger_animation_kit: ^0.1.0 copied to clipboard

Prebuilt animation primitives with timeline sequencing and spring physics

philiprehberger_animation_kit #

Tests pub package Last updated

Prebuilt animation primitives with timeline sequencing and spring physics

Requirements #

  • Flutter >= 3.24
  • Dart >= 3.6

Installation #

Add to your pubspec.yaml:

dependencies:
  philiprehberger_animation_kit: ^0.1.0

Then run:

flutter pub get

Usage #

import 'package:philiprehberger_animation_kit/animation_kit.dart';

FadeIn(
  duration: Duration(milliseconds: 500),
  child: Text('Hello, World!'),
)

Slide In #

SlideIn.fromRight(child: Text('From right'))
SlideIn.fromBottom(
  duration: Duration(milliseconds: 500),
  child: Text('From bottom'),
)

Scale In #

ScaleIn(
  curve: Curves.easeOutBack,
  child: Icon(Icons.star, size: 48),
)

Bounce #

Bounce(
  duration: Duration(milliseconds: 800),
  child: Text('Boing!'),
)

Shake #

Shake(
  magnitude: 12.0,
  oscillations: 4,
  child: Text('Error!', style: TextStyle(color: Colors.red)),
)

Pulse #

Pulse(
  minScale: 0.9,
  maxScale: 1.1,
  child: Icon(Icons.favorite, color: Colors.red, size: 48),
)

Animation Sequence #

AnimationSequence(
  staggerDelay: Duration(milliseconds: 150),
  children: [
    Text('First'),
    Text('Second'),
    Text('Third'),
  ],
)

Spring Physics #

SpringWidget(
  target: Offset(100.0, 50.0),
  stiffness: 300.0,
  damping: 15.0,
  child: Container(
    width: 60,
    height: 60,
    decoration: BoxDecoration(
      color: Colors.green,
      shape: BoxShape.circle,
    ),
  ),
)

API #

Widget Description
FadeIn Fade in a child widget with configurable duration, curve, and delay
SlideIn Slide in from a direction (left, right, top, bottom)
ScaleIn Scale from 0 to 1 with configurable curve
Bounce Scale with elastic overshoot (Curves.elasticOut)
Shake Horizontal shake using sine-based offset with decay
Pulse Repeating scale animation (grows and shrinks)
AnimationSequence Staggered reveal of child widgets in sequence
SpringWidget Spring physics positioning with configurable stiffness and damping

Development #

flutter pub get
flutter analyze
flutter test

Support #

If you find this project useful:

Star the repo

🐛 Report issues

💡 Suggest features

❤️ Sponsor development

🌐 All Open Source Projects

💻 GitHub Profile

🔗 LinkedIn Profile

License #

MIT

2
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherphiliprehberger.com

Prebuilt animation primitives with timeline sequencing and spring physics

Homepage
Repository (GitHub)
View/report issues

Topics

#animation #widget #effects

License

MIT (license)

Dependencies

flutter

More

Packages that depend on philiprehberger_animation_kit