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

Unified Diff: sky/sdk/example/stocks/lib/stock_home.dart

Issue 1233703003: add initState, rename animated_container (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove print statement 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
Index: sky/sdk/example/stocks/lib/stock_home.dart
diff --git a/sky/sdk/example/stocks/lib/stock_home.dart b/sky/sdk/example/stocks/lib/stock_home.dart
index e57aeda63ed645258d89b547319126a882e801ba..7d5679cea8fbca6d43168607680afa52c19f1be2 100644
--- a/sky/sdk/example/stocks/lib/stock_home.dart
+++ b/sky/sdk/example/stocks/lib/stock_home.dart
@@ -5,7 +5,7 @@
import 'package:sky/editing/input.dart';
import 'package:sky/animation/animation_performance.dart';
import 'package:sky/widgets/animated_component.dart';
-import 'package:sky/widgets/animated_container.dart';
+import 'package:sky/widgets/animation_builder.dart';
import 'package:sky/theme/colors.dart' as colors;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/drawer.dart';
@@ -58,7 +58,7 @@ class StockHome extends AnimatedComponent {
bool _isSearching = false;
String _searchQuery;
- AnimatedContainer _snackbarTransform;
+ AnimationBuilder _snackbarTransform;
void _handleSearchBegin() {
navigator.pushState("/search", (_) {
@@ -282,7 +282,7 @@ class StockHome extends AnimatedComponent {
void _handleStockPurchased() {
setState(() {
- _snackbarTransform = new AnimatedContainer()
+ _snackbarTransform = new AnimationBuilder()
..position = new AnimatedType<Point>(const Point(0.0, 45.0), end: Point.origin);
var performance = _snackbarTransform.createPerformance(
[_snackbarTransform.position], duration: _kSnackbarSlideDuration);

Powered by Google App Engine
This is Rietveld 408576698