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

Unified Diff: sky/examples/widgets/styled_text.dart

Issue 1203253002: Add support for line-height in TextStyle. (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 | « no previous file | sky/sdk/lib/painting/text_style.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/widgets/styled_text.dart
diff --git a/sky/examples/widgets/styled_text.dart b/sky/examples/widgets/styled_text.dart
index 42d34ff6421a5740a8c929accbace2070ba1094b..2f5e6f3a0c9c11de0579fd3fb4fef2d55f60476c 100644
--- a/sky/examples/widgets/styled_text.dart
+++ b/sky/examples/widgets/styled_text.dart
@@ -8,7 +8,6 @@ import 'package:sky/rendering/flex.dart';
import 'package:sky/rendering/sky_binding.dart';
import 'package:sky/theme/colors.dart';
import 'package:sky/theme/theme_data.dart';
-import 'package:sky/theme/typography.dart';
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/material.dart';
import 'package:sky/widgets/scaffold.dart';
@@ -43,7 +42,7 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
// [["Dave", "Open the pod bay..."] ...]
List<List<String>> nameLines;
- final TextStyle daveStyle = new TextStyle(color: Indigo[400]);
+ final TextStyle daveStyle = new TextStyle(color: Indigo[400], height: 1.8);
final TextStyle halStyle = new TextStyle(color: Red[400], fontFamily: "monospace");
final TextStyle boldStyle = const TextStyle(fontWeight: bold);
final TextStyle underlineStyle = const TextStyle(
« no previous file with comments | « no previous file | sky/sdk/lib/painting/text_style.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698