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

Side by Side Diff: sky/sdk/example/widgets/styled_text.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/example/rendering/justify_content.dart ('k') | sky/sdk/lib/rendering/flex.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 'package:sky/painting/text_style.dart'; 5 import 'package:sky/painting/text_style.dart';
6 import 'package:sky/rendering/box.dart'; 6 import 'package:sky/rendering/box.dart';
7 import 'package:sky/rendering/flex.dart'; 7 import 'package:sky/rendering/flex.dart';
8 import 'package:sky/rendering/sky_binding.dart'; 8 import 'package:sky/rendering/sky_binding.dart';
9 import 'package:sky/theme/colors.dart' as colors; 9 import 'package:sky/theme/colors.dart' as colors;
10 import 'package:sky/widgets/basic.dart'; 10 import 'package:sky/widgets/basic.dart';
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if (line != lines.last) { 89 if (line != lines.last) {
90 children.add(createSeparator()); 90 children.add(createSeparator());
91 } 91 }
92 } 92 }
93 93
94 Container body = new Container( 94 Container body = new Container(
95 padding: new EdgeDims.symmetric(horizontal: 8.0), 95 padding: new EdgeDims.symmetric(horizontal: 8.0),
96 child: new Flex(children, 96 child: new Flex(children,
97 direction: FlexDirection.vertical, 97 direction: FlexDirection.vertical,
98 justifyContent: FlexJustifyContent.center, 98 justifyContent: FlexJustifyContent.center,
99 alignItems: FlexAlignItems.flexStart 99 alignItems: FlexAlignItems.start
100 ) 100 )
101 ); 101 );
102 102
103 Listener interactiveBody = new Listener( 103 Listener interactiveBody = new Listener(
104 child: body, 104 child: body,
105 onPointerDown: toggleToTextFunction 105 onPointerDown: toggleToTextFunction
106 ); 106 );
107 107
108 return new Theme( 108 return new Theme(
109 data: new ThemeData.light(), 109 data: new ThemeData.light(),
(...skipping 10 matching lines...) Expand all
120 } 120 }
121 } 121 }
122 122
123 void main() { 123 void main() {
124 runApp(new StyledTextApp()); 124 runApp(new StyledTextApp());
125 SkyBinding.instance.onFrame = () { 125 SkyBinding.instance.onFrame = () {
126 // uncomment this for debugging: 126 // uncomment this for debugging:
127 // SkyBinding.instance.debugDumpRenderTree(); 127 // SkyBinding.instance.debugDumpRenderTree();
128 }; 128 };
129 } 129 }
OLDNEW
« no previous file with comments | « sky/sdk/example/rendering/justify_content.dart ('k') | sky/sdk/lib/rendering/flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698