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 library editing_editable_text; |
| 6 |
5 import '../fn.dart'; | 7 import '../fn.dart'; |
6 import '../theme/colors.dart'; | 8 import '../theme/colors.dart'; |
7 import 'dart:async'; | 9 import 'dart:async'; |
8 import 'editable_string.dart'; | 10 import 'editable_string.dart'; |
9 | 11 |
10 class EditableText extends Component { | 12 class EditableText extends Component { |
11 | 13 |
12 static final Style _cursorStyle = new Style(''' | 14 static final Style _cursorStyle = new Style(''' |
13 width: 2px; | 15 width: 2px; |
14 height: 1.2em; | 16 height: 1.2em; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 83 } |
82 | 84 |
83 if (_showCursor) | 85 if (_showCursor) |
84 children.add(new Container(key: 'cursor', style: _cursorStyle)); | 86 children.add(new Container(key: 'cursor', style: _cursorStyle)); |
85 | 87 |
86 return new Paragraph( | 88 return new Paragraph( |
87 children: children | 89 children: children |
88 ); | 90 ); |
89 } | 91 } |
90 } | 92 } |
OLD | NEW |