mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 22:38:42 +00:00
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
This commit is contained in:
@@ -14,6 +14,7 @@ import 'src/misc/card_swipe.dart';
|
||||
import 'src/misc/carousel.dart';
|
||||
import 'src/misc/expand_card.dart';
|
||||
import 'src/misc/focus_image.dart';
|
||||
import 'src/misc/physics_card_drag.dart';
|
||||
import 'src/misc/repeating_animation.dart';
|
||||
|
||||
void main() => runApp(AnimationSamples());
|
||||
@@ -48,6 +49,8 @@ final miscDemos = [
|
||||
Demo('Card Swipe', CardSwipeDemo.routeName, (context) => CardSwipeDemo()),
|
||||
Demo('Repeating Animation', RepeatingAnimationDemo.routeName,
|
||||
(context) => RepeatingAnimationDemo()),
|
||||
Demo('Spring Physics', PhysicsCardDragDemo.routeName,
|
||||
(context) => PhysicsCardDragDemo()),
|
||||
];
|
||||
|
||||
final basicDemoRoutes =
|
||||
|
||||
Reference in New Issue
Block a user