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

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

Issue 1013713005: Cleanup events related to material splashes (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
Index: sky/framework/components/ink_splash.dart
diff --git a/sky/framework/components/ink_splash.dart b/sky/framework/components/ink_splash.dart
index 8e3e9068af896bc577b9a293ae46512d43eaf042..c768cb6fcccb116e1bd69422ea227dd8474be7b0 100644
--- a/sky/framework/components/ink_splash.dart
+++ b/sky/framework/components/ink_splash.dart
@@ -45,25 +45,18 @@ class SplashAnimation {
}
class InkSplash extends Component {
- static final Style _style = new Style('''
+ static final Style _clipperStyle = new Style('''
position: absolute;
pointer-events: none;
overflow: hidden;
top: 0;
left: 0;
bottom: 0;
- right: 0;
- ''');
+ right: 0;''');
static final Style _splashStyle = new Style('''
position: absolute;
- background-color: rgba(0, 0, 0, 0.4);
- border-radius: 0;
- top: 0;
- left: 0;
- height: 0;
- width: 0;
- ''');
+ background-color: rgba(0, 0, 0, 0.4);''');
Stream<String> onStyleChanged;
@@ -94,7 +87,7 @@ class InkSplash extends Component {
_ensureListening();
return new Container(
- style: _style,
+ style: _clipperStyle,
children: [
new Container(
inlineStyle: _inlineStyle,

Powered by Google App Engine
This is Rietveld 408576698