| 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 '../editing/editable_string.dart'; | 5 import '../editing/editable_string.dart'; |
| 6 import '../editing/editable_text.dart'; | 6 import '../editing/editable_text.dart'; |
| 7 import '../editing/keyboard.dart'; | 7 import '../editing/keyboard.dart'; |
| 8 import '../fn2.dart'; | 8 import '../fn2.dart'; |
| 9 import '../theme/colors.dart'; | 9 import '../theme/colors.dart'; |
| 10 import '../theme/typography.dart' as typography; | 10 import '../theme/typography.dart' as typography; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 children.add(new Container( | 77 children.add(new Container( |
| 78 style: _placeholderStyle, | 78 style: _placeholderStyle, |
| 79 children: [new Text(placeholder)] | 79 children: [new Text(placeholder)] |
| 80 )); | 80 )); |
| 81 } | 81 } |
| 82 | 82 |
| 83 children.add(new EditableText(value: _editableValue, focused: focused)); | 83 children.add(new EditableText(value: _editableValue, focused: focused)); |
| 84 | 84 |
| 85 return new EventListenerNode( | 85 return new EventListenerNode( |
| 86 new FlexContainer( | 86 new FlexContainer( |
| 87 direction: FlexDirection.Column, | 87 direction: FlexDirection.vertical, |
| 88 style: _style, | 88 style: _style, |
| 89 inlineStyle: focused ? _focusedInlineStyle : null, | 89 inlineStyle: focused ? _focusedInlineStyle : null, |
| 90 children: children | 90 children: children |
| 91 ), | 91 ), |
| 92 onPointerDown: (sky.Event e) => keyboard.showByRequest() | 92 onPointerDown: (sky.Event e) => keyboard.showByRequest() |
| 93 ); | 93 ); |
| 94 } | 94 } |
| 95 } | 95 } |
| OLD | NEW |