Revert "[web] Enable the new rich paragraph implementation (#23162)" (flutter/engine#23651)

This reverts commit 0b24fcda7bde282dbe3d86f785445e427f36c053.
This commit is contained in:
Zachary Anderson 2021-01-13 10:02:01 -08:00 committed by GitHub
parent 14115180a0
commit dabdc2d73f
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ class WebExperiments {
static const bool _defaultUseCanvasRichText = const bool.fromEnvironment(
'FLUTTER_WEB_USE_EXPERIMENTAL_CANVAS_RICH_TEXT',
defaultValue: true,
defaultValue: false,
);
bool _useCanvasRichText = _defaultUseCanvasRichText;

View File

@ -11,7 +11,7 @@ import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
const bool _defaultUseCanvasText = true;
const bool _defaultUseCanvasRichText = true;
const bool _defaultUseCanvasRichText = false;
void main() {
internalBootstrapBrowserTest(() => testMain);

View File

@ -547,8 +547,8 @@ void _testCullRectComputation() {
'renders clipped text with high quality',
() async {
// To reproduce blurriness we need real clipping.
final DomParagraph paragraph =
(DomParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
final Paragraph paragraph =
(ParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
paragraph.layout(const ParagraphConstraints(width: 1000));
final Rect canvasSize = Rect.fromLTRB(