Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: svg res work error in <img> tag #601

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

yifei8
Copy link
Member

@yifei8 yifei8 commented Apr 11, 2024

No description provided.

@yifei8 yifei8 closed this Apr 11, 2024
@yifei8 yifei8 force-pushed the fix/svg_img_error branch from 48b3d85 to 52a5d37 Compare April 11, 2024 09:55
@yifei8 yifei8 reopened this Apr 11, 2024
@@ -73,7 +73,9 @@ class SVGRenderBoxBuilder {
.toDartString(length: element.original_tag.length)
.toUpperCase();
final renderBox = getSVGRenderBox(tagName);

if (renderBox == null) {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it more suitable to return a null value when the renderBox is null, as the expected value of visitSVGTree is RenderBoxModel ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be necessary. You can take a look at this complete code.

@yifei8 yifei8 requested review from andycall and XGHeaven April 18, 2024 03:12
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.

2 participants