Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: sky/sdk/example/widgets/card_collection.dart

Issue 1226133004: Switch scroll physics over to using newton (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: analyzer nit Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/animation/animated_simulation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/widgets/card_collection.dart
diff --git a/sky/sdk/example/widgets/card_collection.dart b/sky/sdk/example/widgets/card_collection.dart
index e20648c21fe46294808986c7ebb01127763a15fc..ef6d82d8fc55d132187f56821f90098a5b2ef82b 100644
--- a/sky/sdk/example/widgets/card_collection.dart
+++ b/sky/sdk/example/widgets/card_collection.dart
@@ -47,8 +47,8 @@ class VariableHeightScrollable extends Scrollable {
void _handleSizeChanged(Size newSize) {
setState(() {
- scrollBehavior.containerHeight = newSize.height;
- scrollBehavior.contentsHeight = 5000.0;
+ scrollBehavior.containerSize = newSize.height;
+ scrollBehavior.contentsSize = 5000.0;
});
}
@@ -70,13 +70,13 @@ class CardCollectionApp extends App {
new TextStyle(color: White, fontSize: 18.0, fontWeight: bold);
final List<double> cardHeights = [
- 48.0, 64.0, 82.0, 46.0, 60.0, 55.0, 84.0, 96.0, 50.0,
+ 48.0, 64.0, 82.0, 46.0, 60.0, 55.0, 84.0, 96.0, 50.0,
48.0, 64.0, 82.0, 46.0, 60.0, 55.0, 84.0, 96.0, 50.0,
48.0, 64.0, 82.0, 46.0, 60.0, 55.0, 84.0, 96.0, 50.0
];
List<int> visibleCardIndices;
-
+
CardCollectionApp() {
_activeCardTransform = new AnimatedContainer()
..position = new AnimatedType<Point>(Point.origin)
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/animation/animated_simulation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698