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

Side by Side Diff: sky/framework/editing/editable_text.dart

Issue 1070313005: [Effen] typo fix: 'cusor' => 'cursor' in editable_text.dart (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 '../fn.dart'; 5 import '../fn.dart';
6 import '../theme/colors.dart'; 6 import '../theme/colors.dart';
7 import 'dart:async'; 7 import 'dart:async';
8 import 'editable_string.dart'; 8 import 'editable_string.dart';
9 9
10 class EditableText extends Component { 10 class EditableText extends Component {
11 static final Style _style = new Style(''' 11 static final Style _style = new Style('''
12 display: inline;''' 12 display: inline;'''
13 ); 13 );
14 14
15 static final Style _cusorStyle = new Style(''' 15 static final Style _cursorStyle = new Style('''
16 display: inline-flex; 16 display: inline-flex;
17 width: 2px; 17 width: 2px;
18 height: 1.2em; 18 height: 1.2em;
19 vertical-align: top; 19 vertical-align: top;
20 background-color: ${Blue[500]};''' 20 background-color: ${Blue[500]};'''
21 ); 21 );
22 22
23 static final Style _composingStyle = new Style(''' 23 static final Style _composingStyle = new Style('''
24 display: inline; 24 display: inline;
25 text-decoration: underline;''' 25 text-decoration: underline;'''
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 children: [new Text(composing)] 79 children: [new Text(composing)]
80 )); 80 ));
81 } 81 }
82 82
83 String afterComposing = value.textAfter(value.composing); 83 String afterComposing = value.textAfter(value.composing);
84 if (!afterComposing.isEmpty) 84 if (!afterComposing.isEmpty)
85 children.add(new Text(afterComposing)); 85 children.add(new Text(afterComposing));
86 } 86 }
87 87
88 if (_showCursor) 88 if (_showCursor)
89 children.add(new Container(key: 'cursor', style: _cusorStyle)); 89 children.add(new Container(key: 'cursor', style: _cursorStyle));
90 90
91 return new Container( 91 return new Container(
92 style: _style, 92 style: _style,
93 children: children 93 children: children
94 ); 94 );
95 } 95 }
96 } 96 }
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