| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import '../animation/animated_value.dart'; | 5 import '../animation/animated_value.dart'; |
| 6 import '../animation/curves.dart'; | 6 import '../animation/curves.dart'; |
| 7 import '../animation/generators.dart'; | 7 import '../animation/generators.dart'; |
| 8 import '../fn.dart'; | 8 import '../fn.dart'; |
| 9 import '../theme/view-configuration.dart' as config; | 9 import '../theme/view-configuration.dart' as config; |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 position: absolute; | 92 position: absolute; |
| 93 pointer-events: none; | 93 pointer-events: none; |
| 94 overflow: hidden; | 94 overflow: hidden; |
| 95 top: 0; | 95 top: 0; |
| 96 left: 0; | 96 left: 0; |
| 97 bottom: 0; | 97 bottom: 0; |
| 98 right: 0;'''); | 98 right: 0;'''); |
| 99 | 99 |
| 100 static final Style _splashStyle = new Style(''' | 100 static final Style _splashStyle = new Style(''' |
| 101 position: absolute; | 101 position: absolute; |
| 102 background-color: rgba(0, 0, 0, 0.4);'''); | 102 background-color: rgba(0, 0, 0, 0.2);'''); |
| 103 | 103 |
| 104 Stream<String> onStyleChanged; | 104 Stream<String> onStyleChanged; |
| 105 | 105 |
| 106 double _offsetX; | 106 double _offsetX; |
| 107 double _offsetY; | 107 double _offsetY; |
| 108 String _inlineStyle; | 108 String _inlineStyle; |
| 109 | 109 |
| 110 InkSplash(Stream<String> onStyleChanged) | 110 InkSplash(Stream<String> onStyleChanged) |
| 111 : onStyleChanged = onStyleChanged, | 111 : onStyleChanged = onStyleChanged, |
| 112 super(stateful: true, key: onStyleChanged.hashCode); | 112 super(stateful: true, key: onStyleChanged.hashCode); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 133 style: _clipperStyle, | 133 style: _clipperStyle, |
| 134 children: [ | 134 children: [ |
| 135 new Container( | 135 new Container( |
| 136 inlineStyle: _inlineStyle, | 136 inlineStyle: _inlineStyle, |
| 137 style: _splashStyle | 137 style: _splashStyle |
| 138 ) | 138 ) |
| 139 ] | 139 ] |
| 140 ); | 140 ); |
| 141 } | 141 } |
| 142 } | 142 } |
| OLD | NEW |