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

Unified Diff: sky/sdk/lib/widgets/scrollable.dart

Issue 1231103005: Rename watchPerformance to watch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/lib/widgets/popup_menu.dart ('k') | sky/sdk/lib/widgets/toggleable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/scrollable.dart
diff --git a/sky/sdk/lib/widgets/scrollable.dart b/sky/sdk/lib/widgets/scrollable.dart
index 87dcbe1cd606ea89b6305054113a313888569792..807bd26a963dfc019d30154d001e211a8eb31674 100644
--- a/sky/sdk/lib/widgets/scrollable.dart
+++ b/sky/sdk/lib/widgets/scrollable.dart
@@ -30,13 +30,15 @@ abstract class Scrollable extends StatefulComponent {
String key,
this.backgroundColor,
this.direction: ScrollDirection.vertical
- }) : super(key: key) {
- _animation = new AnimatedSimulation(_tickScrollOffset);
- }
+ }) : super(key: key);
Color backgroundColor;
ScrollDirection direction;
+ void initState() {
+ _animation = new AnimatedSimulation(_tickScrollOffset);
+ }
+
void syncFields(Scrollable source) {
backgroundColor = source.backgroundColor;
direction == source.direction;
« no previous file with comments | « sky/sdk/lib/widgets/popup_menu.dart ('k') | sky/sdk/lib/widgets/toggleable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698