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:sky' as sky; | 5 import 'dart:sky' as sky; |
6 | 6 |
7 import 'package:vector_math/vector_math.dart'; | 7 import 'package:vector_math/vector_math.dart'; |
8 | 8 |
9 import '../painting/text_style.dart'; | 9 import '../painting/text_style.dart'; |
10 import '../rendering/block.dart'; | 10 import '../rendering/block.dart'; |
11 import '../rendering/box.dart'; | 11 import '../rendering/box.dart'; |
12 import '../rendering/flex.dart'; | 12 import '../rendering/flex.dart'; |
13 import '../rendering/object.dart'; | 13 import '../rendering/object.dart'; |
14 import '../rendering/paragraph.dart'; | 14 import '../rendering/paragraph.dart'; |
15 import '../rendering/stack.dart'; | 15 import '../rendering/stack.dart'; |
16 import 'default_text_style.dart'; | 16 import 'default_text_style.dart'; |
17 import 'widget.dart'; | 17 import 'widget.dart'; |
18 | 18 |
19 export '../rendering/box.dart' show BoxConstraints, BoxDecoration, Border, Borde
rSide, EdgeDims; | 19 export '../rendering/box.dart' show BoxConstraints, BoxDecoration, Border, Borde
rSide, EdgeDims; |
20 export '../rendering/flex.dart' show FlexDirection, FlexJustifyContent, FlexAlig
nItems; | 20 export '../rendering/flex.dart' show FlexDirection, FlexJustifyContent, FlexAlig
nItems; |
21 export '../rendering/object.dart' show Point, Size, Rect, Color, Paint, Path; | 21 export '../rendering/object.dart' show Point, Offset, Size, Rect, Color, Paint,
Path; |
22 export 'widget.dart' show Widget, Component, App, runApp, Listener, ParentDataNo
de; | 22 export 'widget.dart' show Widget, Component, App, runApp, Listener, ParentDataNo
de; |
23 | 23 |
24 | 24 |
25 // PAINTING NODES | 25 // PAINTING NODES |
26 | 26 |
27 class Opacity extends OneChildRenderObjectWrapper { | 27 class Opacity extends OneChildRenderObjectWrapper { |
28 Opacity({ String key, this.opacity, Widget child }) | 28 Opacity({ String key, this.opacity, Widget child }) |
29 : super(key: key, child: child); | 29 : super(key: key, child: child); |
30 | 30 |
31 RenderOpacity get root => super.root; | 31 RenderOpacity get root => super.root; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 } | 489 } |
490 | 490 |
491 void remove() { | 491 void remove() { |
492 RenderObjectWrapper ancestor = findAncestor(RenderObjectWrapper); | 492 RenderObjectWrapper ancestor = findAncestor(RenderObjectWrapper); |
493 assert(ancestor is RenderObjectWrapper); | 493 assert(ancestor is RenderObjectWrapper); |
494 ancestor.detachChildRoot(this); | 494 ancestor.detachChildRoot(this); |
495 super.remove(); | 495 super.remove(); |
496 } | 496 } |
497 | 497 |
498 } | 498 } |
OLD | NEW |