| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 : _offsetX = x - rect.left, | 62 : _offsetX = x - rect.left, |
| 63 _offsetY = y - rect.top, | 63 _offsetY = y - rect.top, |
| 64 _targetSize = _getSplashTargetSize(rect, x, y) { | 64 _targetSize = _getSplashTargetSize(rect, x, y) { |
| 65 | 65 |
| 66 _styleStream = _size.onValueChanged.map((p) { | 66 _styleStream = _size.onValueChanged.map((p) { |
| 67 if (p == _targetSize) { | 67 if (p == _targetSize) { |
| 68 onDone(); | 68 onDone(); |
| 69 } | 69 } |
| 70 double size; | 70 double size; |
| 71 if (_growing) { | 71 if (_growing) { |
| 72 sise = p; | 72 size = p; |
| 73 _lastSize = p; | 73 _lastSize = p; |
| 74 } else { | 74 } else { |
| 75 size = _lastSize; | 75 size = _lastSize; |
| 76 } | 76 } |
| 77 return ''' | 77 return ''' |
| 78 top: ${_offsetY - size/2}px; | 78 top: ${_offsetY - size/2}px; |
| 79 left: ${_offsetX - size/2}px; | 79 left: ${_offsetX - size/2}px; |
| 80 width: ${size}px; | 80 width: ${size}px; |
| 81 height: ${size}px; | 81 height: ${size}px; |
| 82 border-radius: ${size}px; | 82 border-radius: ${size}px; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |