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 '../animation/animated_value.dart'; | 5 import '../animation/animated_value.dart'; |
6 import '../animation/curves.dart'; | 6 import '../animation/curves.dart'; |
7 import '../fn2.dart'; | 7 import '../fn2.dart'; |
8 import '../rendering/box.dart'; | 8 import '../rendering/box.dart'; |
9 import '../rendering/flex.dart'; | 9 import '../rendering/flex.dart'; |
10 import '../rendering/object.dart'; | 10 import '../rendering/object.dart'; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 RenderInkWell root; | 108 RenderInkWell root; |
109 | 109 |
110 RenderInkWell createNode() => new RenderInkWell(); | 110 RenderInkWell createNode() => new RenderInkWell(); |
111 } | 111 } |
112 | 112 |
113 class InkWell extends Component { | 113 class InkWell extends Component { |
114 InkWell({ Object key, this.children }) : super(key: key); | 114 InkWell({ Object key, this.children }) : super(key: key); |
115 | 115 |
116 List<UINode> children; | 116 List<UINode> children; |
117 | 117 |
| 118 void syncFields(InkWell source) { |
| 119 children = source.children; |
| 120 super.syncFields(source); |
| 121 } |
| 122 |
118 UINode build() { | 123 UINode build() { |
119 return new InkWellWrapper( | 124 return new InkWellWrapper( |
120 child: new FlexContainer( | 125 child: new FlexContainer( |
121 direction: FlexDirection.horizontal, | 126 direction: FlexDirection.horizontal, |
122 justifyContent: FlexJustifyContent.center, | 127 justifyContent: FlexJustifyContent.center, |
123 children: children | 128 children: children |
124 ) | 129 ) |
125 ); | 130 ); |
126 } | 131 } |
127 } | 132 } |
OLD | NEW |