Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: sky/sdk/lib/widgets/basic.dart

Issue 1232063004: Remove redundant 'flex' prefixes on enum values. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/rendering/flex.dart ('k') | sky/sdk/lib/widgets/dialog.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/rendering/flex.dart ('k') | sky/sdk/lib/widgets/dialog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698