-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[flutter_markdown] Added sizedImageBuilder to Markdown widget #6739
base: main
Are you sure you want to change the base?
Conversation
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.
I'm curious how image height and width are parsed from the markdown.
@domesticmouse |
Please add a test that covers width x height from markdown to final usage to prevent future breakage |
This was not done; please don't check boxes without completing the steps they describe.
CI indicates that the new test is not passing, which will need to be resolved before this can be reviewed. |
I run image tests before any changes and I get :
Any suggestion please |
Tiny changes in golden files are normal if you are on a different host OS than the baseline (which is usually Linux). The issue on CI though is that you've dramatically changed an existing golden test, but haven't changed the expected output. Please make a new test instead of changing that one, and set a new golden for it. |
From triage: @M97Chahboun Are you planning on updating the tests per the comments above? |
@stuartmorgan I don't have any idea about golden test, but I will try to implement it ASAP |
Marking as a draft pending new, passing tests that can be reviewed. |
Since this is marked as a draft and hasn't been updated in several months, I’m going to close it so that our PR queue reflects active PRs. Please don't hesitate to submit a new PR if you decide to revisit this. Thanks! |
From triage: @domesticmouse it looks like this is ready for re-review. |
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.
PTAL @tarrinneal
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.
You'll need to run the format command as well. Probably good to run the analyzer as well to check for issues.
I haven't looked into your other failing tests. You can click on them and look at what's failing, or run the tests locally to debug them.
@M97Chahboun The test failures are in your new test; merging in main isn't going to resolve them, it's just unnecessarily triggering all of the CI again each time. |
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.
Looks good, thanks for putting this together!
sizedImageBuilder
toMarkdown
widget.Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).