Enable the new TextPainter

This commit is contained in:
Adam Barth
2015-10-23 10:18:49 -07:00
parent 549569637f
commit 228469bbb7
2 changed files with 2 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ class StyledTextSpan extends TextSpan {
}
}
const bool _kEnableNewTextPainter = false;
const bool _kEnableNewTextPainter = true;
abstract class TextPainter {

View File

@@ -166,8 +166,7 @@ class TextStyle {
ui.ParagraphStyle get paragraphStyle {
return new ui.ParagraphStyle(
// TODO(abarth): Restore once the analyzer can see the new dart:ui interface.
// textAlign: textAlign,
textAlign: textAlign,
textBaseline: textBaseline,
lineHeight: height
);