| 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:async'; | 5 import 'dart:async'; |
| 6 import 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
| 7 | 7 |
| 8 import 'package:vector_math/vector_math.dart'; | 8 import 'package:vector_math/vector_math.dart'; |
| 9 | 9 |
| 10 import '../mojo/asset_bundle.dart'; | 10 import '../mojo/asset_bundle.dart'; |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 ..bottom = bottom | 395 ..bottom = bottom |
| 396 ..left = left, | 396 ..left = left, |
| 397 key: key); | 397 key: key); |
| 398 } | 398 } |
| 399 | 399 |
| 400 class Flex extends MultiChildRenderObjectWrapper { | 400 class Flex extends MultiChildRenderObjectWrapper { |
| 401 | 401 |
| 402 Flex(List<Widget> children, { | 402 Flex(List<Widget> children, { |
| 403 String key, | 403 String key, |
| 404 this.direction: FlexDirection.horizontal, | 404 this.direction: FlexDirection.horizontal, |
| 405 this.justifyContent: FlexJustifyContent.flexStart, | 405 this.justifyContent: FlexJustifyContent.start, |
| 406 this.alignItems: FlexAlignItems.center | 406 this.alignItems: FlexAlignItems.center |
| 407 }) : super(key: key, children: children); | 407 }) : super(key: key, children: children); |
| 408 | 408 |
| 409 RenderFlex get root => super.root; | 409 RenderFlex get root => super.root; |
| 410 RenderFlex createNode() => new RenderFlex(direction: this.direction); | 410 RenderFlex createNode() => new RenderFlex(direction: this.direction); |
| 411 | 411 |
| 412 final FlexDirection direction; | 412 final FlexDirection direction; |
| 413 final FlexJustifyContent justifyContent; | 413 final FlexJustifyContent justifyContent; |
| 414 final FlexAlignItems alignItems; | 414 final FlexAlignItems alignItems; |
| 415 | 415 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 } | 584 } |
| 585 | 585 |
| 586 void remove() { | 586 void remove() { |
| 587 RenderObjectWrapper ancestor = findAncestorRenderObjectWrapper(); | 587 RenderObjectWrapper ancestor = findAncestorRenderObjectWrapper(); |
| 588 assert(ancestor is RenderObjectWrapper); | 588 assert(ancestor is RenderObjectWrapper); |
| 589 ancestor.detachChildRoot(this); | 589 ancestor.detachChildRoot(this); |
| 590 super.remove(); | 590 super.remove(); |
| 591 } | 591 } |
| 592 | 592 |
| 593 } | 593 } |
| OLD | NEW |