Skip to content

Add documentation for experimental WebParagraph text layout - #13997

Draft
mdebbar wants to merge 1 commit into
flutter:mainfrom
mdebbar:add-web-paragraph-docs
Draft

mdebbar wants to merge 1 commit into
flutter:mainfrom
mdebbar:add-web-paragraph-docs

Conversation

@mdebbar

@mdebbar mdebbar commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Adds a page for WebParagraph, the experimental text layout implementation for Flutter web that uses the browser's Enhanced Canvas TextMetrics API instead of the text stack bundled in CanvasKit.

The page covers what WebParagraph is, the requirements (CanvasKit renderer, Chromium with the experimental web platform features flag), how to enable it with preferWebParagraph: true in flutter_bootstrap.js, and how to verify that it's active. I also added preferWebParagraph to the config table in the initialization page and a sidenav entry.

Keeping this as a draft until the next stable release that contains all the necessary bits.

Part of flutter/flutter#172561

@flutter-website-bot

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit 0872c15):

https://flutter-docs-prod--docs-pr13997-add-web-paragraph-docs-m1egrxy9.web.app

@sfshaza2

Copy link
Copy Markdown
Contributor

/gcbrun

@sfshaza2

Copy link
Copy Markdown
Contributor

Can you resolve the conflicts, @mdebbar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants