[web] Enable the new rich paragraph implementation (#23162)

This commit is contained in:
Mouad Debbar 2021-01-11 20:20:00 -08:00 committed by GitHub
parent 10cee6abcb
commit 51dd6aa034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: false,
defaultValue: true,
);
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 = false;
const bool _defaultUseCanvasRichText = true;
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 Paragraph paragraph =
(ParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
final DomParagraph paragraph =
(DomParagraphBuilder(ParagraphStyle(fontFamily: 'Roboto'))..addText('Am I blurry?')).build();
paragraph.layout(const ParagraphConstraints(width: 1000));
final Rect canvasSize = Rect.fromLTRB(