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 '../fn2.dart'; | |
6 import '../theme/colors.dart'; | |
7 import 'dart:async'; | 5 import 'dart:async'; |
| 6 |
| 7 import '../widgets/wrappers.dart'; |
8 import 'editable_string.dart'; | 8 import 'editable_string.dart'; |
9 | 9 |
10 class EditableText extends Component { | 10 class EditableText extends Component { |
11 | 11 |
12 EditableText({Object key, this.value, this.focused}) | 12 EditableText({Object key, this.value, this.focused}) |
13 : super(key: key, stateful: true); | 13 : super(key: key, stateful: true); |
14 | 14 |
15 // static final Style _cursorStyle = new Style(''' | 15 // static final Style _cursorStyle = new Style(''' |
16 // width: 2px; | 16 // width: 2px; |
17 // height: 1.2em; | 17 // height: 1.2em; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // children.add(new Container( | 97 // children.add(new Container( |
98 // key: 'cursor', | 98 // key: 'cursor', |
99 // // style: _cursorStyle | 99 // // style: _cursorStyle |
100 // )); | 100 // )); |
101 | 101 |
102 return new Paragraph( | 102 return new Paragraph( |
103 text: hack | 103 text: hack |
104 ); | 104 ); |
105 } | 105 } |
106 } | 106 } |
OLD | NEW |