You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/animations
dependabot[bot] 4760e45e30
Bump go_router from 8.2.0 to 9.0.0 in /animations (#1917)
2 years ago
..
android Update for Flutter 3.10 beta (#1746) 2 years ago
assets Recommend partial clone instead of shallow clone, remove unused blobs (#1078) 3 years ago
fonts Add missing font for `custom_tween.dart` sample (#1730) 2 years ago
ios Update `sdk` constraint range and update runners (#1706) 2 years ago
lib adding more named and explicit imports (#1909) 2 years ago
linux Update `sdk` constraint range and update runners (#1706) 2 years ago
macos Update for Flutter 3.10 beta (#1746) 2 years ago
test Replace `MaterialButton` in the `AnimatedBuilder` sample (#1729) 2 years ago
web Flutter 3.7.0 (#1556) 2 years ago
windows Update `sdk` constraint range and update runners (#1706) 2 years ago
.gitignore touch ./animations (#148) 5 years ago
.metadata Update samples for Dart 3.0.0 (#1803) 2 years ago
README.md Moved two animation vignettes into misc. (#425) 5 years ago
analysis_options.yaml Tidyup `animations` sample (#1672) 2 years ago
codelab_rebuild.yaml Flutter 3.7.0 (#1556) 2 years ago
pubspec.yaml Bump go_router from 8.2.0 to 9.0.0 in /animations (#1917) 2 years ago

README.md

Animation Samples

Sample apps that showcase Flutter's animation features

Goals

  • Demonstrate the building blocks for animations and how they work together.
  • Provide samples for common patterns and use-cases.

Samples

Basics

Building blocks and patterns

  1. AnimatedContainerDemo: Demonstrates how to use AnimatedContainer.
  2. PageRouteBuilderDemo: Demonstrates how to use Tween and Animation to build a custom page route transition.
  3. AnimationControllerDemo: Demonstrates how to use an AnimationController.
  4. TweenDemo: Demonstrates how to use a Tween with an AnimationController.
  5. AnimatedBuilderDemo: Demonstrates how to use an AnimatedBuilder with an AnimationController.
  6. CustomTweenDemo: Demonstrates how to extend Tween.
  7. TweenSequenceDemo: Demonstrates how to use TweenSequence to build a button that changes between different colors.
  8. FadeTransitionDemo: Demonstrates how to use FadeTransition.

Misc

Other uses-cases and examples

  • RepeatingAnimationDemo: Demonstrates how to repeat an animation.
  • ExpandCardDemo: Demonstrates how to use AnimatedCrossFade to fade between two widgets and change the size.
  • CarouselDemo: Demonstrates how to use PageView with a custom animation.
  • FocusImageDemo: Demonstrates how to measure the size of a widget and expand it using a PageRouteBuilder.
  • PhysicsCardDragDemo: Demonstrates how to run an AnimationController with a spring simulation.
  • CardSwipeDemo: A swipeable card that demonstrates how to use gesture detection to drive an animation.
  • AnimatedList: Demonstrates how to use AnimatedList.
  • AnimatedPositionedDemo: Demonstrates how to use AnimatedPositioned.
  • AnimatedSwitcherDemo: Demonstrates how to use AnimatedSwitcher.
  • HeroAnimationDemo: Demonstrates how to use Hero animation.
  • CurvedAnimationDemo: Demonstrates how to use different curves in CurvedAnimation.

Other Resources