Commit 228469bb authored by Adam Barth's avatar Adam Barth

Enable the new TextPainter

parent 54956963
...@@ -119,7 +119,7 @@ class StyledTextSpan extends TextSpan { ...@@ -119,7 +119,7 @@ class StyledTextSpan extends TextSpan {
} }
} }
const bool _kEnableNewTextPainter = false; const bool _kEnableNewTextPainter = true;
abstract class TextPainter { abstract class TextPainter {
......
...@@ -166,8 +166,7 @@ class TextStyle { ...@@ -166,8 +166,7 @@ class TextStyle {
ui.ParagraphStyle get paragraphStyle { ui.ParagraphStyle get paragraphStyle {
return new ui.ParagraphStyle( return new ui.ParagraphStyle(
// TODO(abarth): Restore once the analyzer can see the new dart:ui interface. textAlign: textAlign,
// textAlign: textAlign,
textBaseline: textBaseline, textBaseline: textBaseline,
lineHeight: height lineHeight: height
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment