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

Side by Side Diff: sky/framework/components/ink_splash.dart

Issue 1066513006: [Effen] Typo in splash code: s/sise/size/ (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698