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

Unified Diff: sky/sdk/example/rendering/justify_content.dart

Issue 1215163003: Random cleanup of various Dart things in our tree. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/example/rendering/baseline.dart ('k') | sky/sdk/example/rendering/shadowed_box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/rendering/justify_content.dart
diff --git a/sky/sdk/example/rendering/justify_content.dart b/sky/sdk/example/rendering/justify_content.dart
index 768b9a8b125dea2ef359336cf92691ae55157041..fc8c86a49fb0e4a0c47c21adc80e94f5b608e232 100644
--- a/sky/sdk/example/rendering/justify_content.dart
+++ b/sky/sdk/example/rendering/justify_content.dart
@@ -3,9 +3,8 @@
// found in the LICENSE file.
import 'dart:sky';
-import 'dart:math' as math;
-import 'package:sky/rendering/block.dart';
+import 'package:sky/painting/text_style.dart';
import 'package:sky/rendering/box.dart';
import 'package:sky/rendering/flex.dart';
import 'package:sky/rendering/object.dart';
@@ -14,13 +13,15 @@ import 'package:sky/rendering/sky_binding.dart';
import 'solid_color_box.dart';
+const TextStyle style = const TextStyle(color: const Color(0xFF000000));
+
// Attempts to draw
// http://www.w3.org/TR/2015/WD-css-flexbox-1-20150514/images/flex-pack.svg
void main() {
var table = new RenderFlex(direction: FlexDirection.vertical);
void addRow(FlexJustifyContent justify) {
- RenderParagraph paragraph = new RenderParagraph(new InlineText("${justify}"));
+ RenderParagraph paragraph = new RenderParagraph(new InlineStyle(style, [new InlineText("${justify}")]));
table.add(new RenderPadding(child: paragraph, padding: new EdgeDims.only(top: 20.0)));
var row = new RenderFlex(direction: FlexDirection.horizontal);
row.add(new RenderSolidColorBox(const Color(0xFFFFCCCC), desiredSize: new Size(80.0, 60.0)));
« no previous file with comments | « sky/sdk/example/rendering/baseline.dart ('k') | sky/sdk/example/rendering/shadowed_box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698