| 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 'editing/editable_string.dart'; |
| 6 import '../../framework/theme/colors.dart'; | 6 import 'editing/editable_text.dart'; |
| 7 import 'editable_string.dart'; | 7 import 'editing/keyboard.dart'; |
| 8 import 'editable_text.dart'; | 8 import 'fn.dart'; |
| 9 import 'keyboard.dart'; | 9 import 'theme/colors.dart'; |
| 10 | 10 |
| 11 typedef void ValueChanged(value); | 11 typedef void ValueChanged(value); |
| 12 | 12 |
| 13 class Input extends Component { | 13 class Input extends Component { |
| 14 static final Style _style = new Style(''' | 14 static final Style _style = new Style(''' |
| 15 display: paragraph; | 15 display: paragraph; |
| 16 margin: 8px; | 16 margin: 8px; |
| 17 padding: 8px; | 17 padding: 8px; |
| 18 border-bottom: 1px solid ${Grey[200]}; | 18 border-bottom: 1px solid ${Grey[200]}; |
| 19 align-self: center; | 19 align-self: center; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Node build() { | 57 Node build() { |
| 58 return new Container( | 58 return new Container( |
| 59 style: _style, | 59 style: _style, |
| 60 inlineStyle: _focused ? _focusedInlineStyle : null, | 60 inlineStyle: _focused ? _focusedInlineStyle : null, |
| 61 children: [ | 61 children: [ |
| 62 new EditableText(value: _editableValue, focused: _focused), | 62 new EditableText(value: _editableValue, focused: _focused), |
| 63 ] | 63 ] |
| 64 ); | 64 ); |
| 65 } | 65 } |
| 66 } | 66 } |
| OLD | NEW |