From 9d9d2d52c50684630da113d7b69d31f58ab6f108 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 19 Mar 2015 11:17:48 -0700 Subject: [PATCH] Improve Material ink effects 1) Factors InkWell out of Material so that components can use an ink well without needing the shadow/level machinery. 2) Makes the ink effect move at a different velocity once the tap has actually occurred, converging with the spec. We don't have the right speeds yet, but at least we're approaching the right shape. 3) To support (2), added a primaryPointer attribute to GestureEvents to let authors coorelate gesturetapdown events with later gesturetap events. 4) To support (2), modernized SplashAnimation to used AnimatedValue and friends. 5) Added more constants to view-configuration.dart that match Android. I've also removed the cancelling of the ink effect on scroll. The proper way to do that is to notice that someone in the event chain is listening for scrollstart and delay the beginning of the ink effect for some period of time. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1019023003 --- examples/stocks-fn/lib/stock_row.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stocks-fn/lib/stock_row.dart b/examples/stocks-fn/lib/stock_row.dart index 6f75dee5db..94abba7adb 100644 --- a/examples/stocks-fn/lib/stock_row.dart +++ b/examples/stocks-fn/lib/stock_row.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:sky/framework/components/material.dart'; +import 'package:sky/framework/components/ink_well.dart'; import 'package:sky/framework/fn.dart'; import 'package:sky/framework/theme/typography.dart' as typography; import 'stock_arrow.dart'; @@ -68,7 +68,7 @@ class StockRow extends Component { ) ]; - return new Material( + return new InkWell( style: _style, children: children );