| 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 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import '../widgets/basic.dart'; | 7 import '../widgets/basic.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({String 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; |
| 18 // vertical-align: top; | 18 // vertical-align: top; |
| 19 // background-color: ${Blue[500]};''' | 19 // background-color: ${Blue[500]};''' |
| 20 // ); | 20 // ); |
| 21 | 21 |
| 22 // static final Style _composingStyle = new Style(''' | 22 // static final Style _composingStyle = new Style(''' |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // children.add(new Container( | 91 // children.add(new Container( |
| 92 // key: 'cursor', | 92 // key: 'cursor', |
| 93 // // style: _cursorStyle | 93 // // style: _cursorStyle |
| 94 // )); | 94 // )); |
| 95 | 95 |
| 96 return new Paragraph( | 96 return new Paragraph( |
| 97 text: hack | 97 text: hack |
| 98 ); | 98 ); |
| 99 } | 99 } |
| 100 } | 100 } |
| OLD | NEW |