| 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 '../layout2.dart'; | |
| 10 import '../theme/colors.dart'; | 9 import '../theme/colors.dart'; |
| 11 import '../theme/typography.dart' as typography; | 10 import '../theme/typography.dart' as typography; |
| 12 import 'dart:sky' as sky; | 11 import 'dart:sky' as sky; |
| 13 | 12 |
| 14 typedef void ValueChanged(value); | 13 typedef void ValueChanged(value); |
| 15 | 14 |
| 16 class Input extends Component { | 15 class Input extends Component { |
| 17 static final Style _style = new Style(''' | 16 static final Style _style = new Style(''' |
| 18 transform: translateX(0); | 17 transform: translateX(0); |
| 19 margin: 8px; | 18 margin: 8px; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 new FlexContainer( | 86 new FlexContainer( |
| 88 direction: FlexDirection.Column, | 87 direction: FlexDirection.Column, |
| 89 style: _style, | 88 style: _style, |
| 90 inlineStyle: focused ? _focusedInlineStyle : null, | 89 inlineStyle: focused ? _focusedInlineStyle : null, |
| 91 children: children | 90 children: children |
| 92 ), | 91 ), |
| 93 onPointerDown: (sky.Event e) => keyboard.showByRequest() | 92 onPointerDown: (sky.Event e) => keyboard.showByRequest() |
| 94 ); | 93 ); |
| 95 } | 94 } |
| 96 } | 95 } |
| OLD | NEW |