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

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

Issue 1179713004: Material and RaisedButton. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/framework/widgets/raised_button.dart ('k') | sky/sdk/lib/framework/widgets/tool_bar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/scrollable.dart
diff --git a/sky/sdk/lib/framework/widgets/scrollable.dart b/sky/sdk/lib/framework/widgets/scrollable.dart
index 16478f4652d6164ec227d41d3568a0b5bac6180a..09c33c7bff309bbddfdd5bf3f8eaad7d6b0a3e1a 100644
--- a/sky/sdk/lib/framework/widgets/scrollable.dart
+++ b/sky/sdk/lib/framework/widgets/scrollable.dart
@@ -8,7 +8,9 @@ import 'dart:sky' as sky;
import '../animation/generators.dart';
import '../animation/mechanics.dart';
import '../animation/scroll_behavior.dart';
-import '../theme/view_configuration.dart' as config;
+import '../theme2/edges.dart';
+import '../theme2/view_configuration.dart' as config;
+import 'material.dart';
import 'wrappers.dart';
const double _kMillisecondsPerSecond = 1000.0;
@@ -45,7 +47,10 @@ abstract class Scrollable extends Component {
UINode build() {
return new EventListenerNode(
- buildContent(),
+ new Material(
+ child: buildContent(),
+ edge: MaterialEdge.canvas
+ ),
onPointerDown: _handlePointerDown,
onPointerUp: _handlePointerUpOrCancel,
onPointerCancel: _handlePointerUpOrCancel,
« no previous file with comments | « sky/sdk/lib/framework/widgets/raised_button.dart ('k') | sky/sdk/lib/framework/widgets/tool_bar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698