mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
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
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'src/basics/animation_controller_demo.dart';
|
||||
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/misc/card_swipe.dart';
|
||||
import 'src/misc/carousel.dart';
|
||||
import 'src/misc/expand_card.dart';
|
||||
@@ -22,8 +27,17 @@ class Demo {
|
||||
}
|
||||
|
||||
final basicDemos = [
|
||||
Demo('AnimatedContainer', AnimatedContainerDemo.routeName,
|
||||
(context) => AnimatedContainerDemo()),
|
||||
Demo('PageRouteBuilder', PageRouteBuilderDemo.routeName,
|
||||
(context) => PageRouteBuilderDemo()),
|
||||
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()),
|
||||
];
|
||||
|
||||
final miscDemos = [
|
||||
|
||||
Reference in New Issue
Block a user