Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/web_experiments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/web_ui/test/engine/web_experiments_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down