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

Unified Diff: sky/framework/components/ink_splash.dart

Issue 993033003: Move example fn widgets into sky/framework/components (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/framework/components/icon.dart ('k') | sky/framework/components/material.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/ink_splash.dart
diff --git a/sky/examples/fn/widgets/inksplash.dart b/sky/framework/components/ink_splash.dart
similarity index 82%
rename from sky/examples/fn/widgets/inksplash.dart
rename to sky/framework/components/ink_splash.dart
index cfc359af1608bc6fe2dce5b9212a1ff7e8e97df4..8cb1e8bf861f6f05cb1ea45d712f7cbb2e9efb5b 100644
--- a/sky/examples/fn/widgets/inksplash.dart
+++ b/sky/framework/components/ink_splash.dart
@@ -1,4 +1,12 @@
-part of widgets;
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import '../animation/curves.dart';
+import '../animation/generator.dart';
+import '../fn.dart';
+import 'dart:async';
+import 'dart:sky' as sky;
const double _kSplashSize = 400.0;
const double _kSplashDuration = 500.0;
@@ -34,10 +42,7 @@ class SplashAnimation {
}
class InkSplash extends Component {
-
- Stream<String> onStyleChanged;
-
- static Style _style = new Style('''
+ static final Style _style = new Style('''
position: absolute;
pointer-events: none;
overflow: hidden;
@@ -47,7 +52,7 @@ class InkSplash extends Component {
right: 0;
''');
- static Style _splashStyle = new Style('''
+ static final Style _splashStyle = new Style('''
position: absolute;
background-color: rgba(0, 0, 0, 0.4);
border-radius: 0;
@@ -57,6 +62,8 @@ class InkSplash extends Component {
width: 0;
''');
+ Stream<String> onStyleChanged;
+
double _offsetX;
double _offsetY;
String _inlineStyle;
« no previous file with comments | « sky/framework/components/icon.dart ('k') | sky/framework/components/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698