Enable the new TextPainter
This commit is contained in:
@@ -119,7 +119,7 @@ class StyledTextSpan extends TextSpan {
|
||||
}
|
||||
}
|
||||
|
||||
const bool _kEnableNewTextPainter = false;
|
||||
const bool _kEnableNewTextPainter = true;
|
||||
|
||||
abstract class TextPainter {
|
||||
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user