mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] Enable the new rich paragraph implementation (#23162)
This commit is contained in:
parent
10cee6abcb
commit
51dd6aa034
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user