1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Commit Graph

105 Commits

Author SHA1 Message Date
John Ryan
349ca7bc6f add TweenSequence sample (#127)
* Add TweenSequence sample

* rename to TweenSequenceDemo

* add copyright headers

* remote type

* introduce animated builder earlier in basics/

so that other examples can use it

* formatting

* use async / await, increase animation duration
2019-08-13 14:13:57 -07:00
John Ryan
b51d75966a Add scroll physics demo (#123)
* add spring physics card demo

* fix button colors in animations project

* code review updates

* refactor method into runAnimation

* combine updateAnimation and runAnimation

* update comment
2019-08-08 10:10:57 -07:00
John Ryan
734b961c57 add animations basics 1-6 (#120)
* add basics

* web: update dependencies

* TransferableTypeData added (#116)

* Updating index with new samples (#121)

* use arrow functions

* remove newline

* use verbs: random*() -> generate*()

* remove <Widget>[] type annotation on lists

* use raised button

* _route() => _createRoute()

* add parameter names to pageBuilder

* use the text theme's display1 for large text

* dispose animation controllers before calling super()

* remove local var

* use raised buttons instead of material buttons

* web: updated dependencies

* Added new test scripts (#122)

* 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:23:04 -07:00
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
John Ryan
2d42fcfd31 Add animation samples (#118)
* initialize animations sample project

* add two demos, set up routing

* clean up expand_card demo

* update README

* clean up expand_card demo

* dartfmt

* update comment

* address code review comments

* swap AnimatedContainer and AnimatedCrossFade

* use AnimatedSwitcher instead of AnimatedCrossFade

* Revert "use AnimatedSwitcher instead of AnimatedCrossFade"

This reverts commit e112e02549.

* rename expanded -> selected

* use  Dart 2.4.0 constraint

* update README

* address code review comments

update images
add curves to expand_card
update pubspec.lock

* add @override annotation

* add animations project to travis script

* add empty test for travis

* add copyright notice to animations/ project
2019-07-23 15:51:57 -07:00