1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-17 12:28:16 +00:00

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
This commit is contained in:
John Ryan
2019-08-13 14:13:57 -07:00
committed by GitHub
parent c2f50f31ff
commit 349ca7bc6f
7 changed files with 111 additions and 13 deletions

View File

@@ -8,8 +8,9 @@ import 'src/basics/01_animated_container.dart';
import 'src/basics/02_page_route_builder.dart';
import 'src/basics/03_animation_controller.dart';
import 'src/basics/04_tweens.dart';
import 'src/basics/05_custom_tween.dart';
import 'src/basics/06_animated_builder.dart';
import 'src/basics/05_animated_builder.dart';
import 'src/basics/06_custom_tween.dart';
import 'src/basics/07_tween_sequence.dart';
import 'src/misc/card_swipe.dart';
import 'src/misc/carousel.dart';
import 'src/misc/expand_card.dart';
@@ -35,10 +36,12 @@ final basicDemos = [
Demo('Animation Controller', AnimationControllerDemo.routeName,
(context) => AnimationControllerDemo()),
Demo('Tweens', TweenDemo.routeName, (context) => TweenDemo()),
Demo('Custom Tween', CustomTweenDemo.routeName,
(context) => CustomTweenDemo()),
Demo('AnimatedBuilder', AnimatedBuilderDemo.routeName,
(context) => AnimatedBuilderDemo()),
Demo('Custom Tween', CustomTweenDemo.routeName,
(context) => CustomTweenDemo()),
Demo('Tween Sequences', TweenSequenceDemo.routeName,
(context) => TweenSequenceDemo()),
];
final miscDemos = [