| 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 '../../framework/fn.dart'; | 5 import '../fn.dart'; |
| 6 import '../../framework/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 _cusorStyle = new Style(''' |
| 16 display: inline-block; | 16 display: inline-block; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 if (_showCursor) | 89 if (_showCursor) |
| 90 children.add(new Container(key: 'cursor', style: _cusorStyle)); | 90 children.add(new Container(key: 'cursor', style: _cusorStyle)); |
| 91 | 91 |
| 92 return new Container( | 92 return new Container( |
| 93 style: _style, | 93 style: _style, |
| 94 children: children | 94 children: children |
| 95 ); | 95 ); |
| 96 } | 96 } |
| 97 } | 97 } |
| OLD | NEW |