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