1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/animations
John Ryan 4966440a29 add carousel, card_swipe, and focus_image samples (#119)
* add carousel, card_swipe, and focus_image samples

* fix image assets

* fix more asset images

* add repeating animation

* fix import

* add copyright headers

* remove Center widget

* imageAssetName

* use ClipRect, refactor _SwipeableCardState

* use offset.zero

* add comments

* remove reference to coverflow package

* change spread to toList()

* refactor coverflow sample

don't set width and height
use const
data -> images

* return widget directly, fix formatting

* inline transitionsBuilder

* image -> imageAssetName

* _rectTween() => _createTween()

* _expandToPageRoute -> _createRoute

* move non-updating widgets out of AnimatedBuilder

* code review updates to animations demos
2019-07-29 09:11:03 -07:00
..
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00
2019-07-23 15:51:57 -07:00

Animation Samples

Sample apps that showcasing 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

AnimationControllerDemo Demonstrates how to use an AnimationController.

Misc

Other uses-cases and examples

ExpandCardDemo Demonstrates how to use AnimatedCrossFade to fade between two widgets and change the size.

Other Resources