-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Split the EngineParagraph interface from the legacy implementation #22307
Conversation
| final int placeholderCount; | ||
|
|
||
| @override | ||
| double width = -1.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comment on why -1.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 is the default value in the native engine for non-laid-out paragraph. Added a comment.
| return domElement.clone(true) as html.HtmlElement; | ||
| } | ||
|
|
||
| html.HtmlElement _createDomElement() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a TODO. Will add in the next PR.
765e256 to
d46a52e
Compare
|
This pull request is not suitable for automatic merging in its current state.
|
Description
Introduce a new Paragraph implementation that doesn't rely on DOM as an internal representation. The new implementation is still WIP for now, and will be implemented incrementally over multiple PRs.
Related Issues
flutter/flutter#55587