[image_picker] Adopt code excerpts in README#5523
[image_picker] Adopt code excerpts in README#5523auto-submit[bot] merged 10 commits intoflutter:mainfrom
Conversation
|
|
|
| testWidgets('getImageFromPath loads image from XFile path', | ||
| (WidgetTester tester) async { | ||
| // Create an XFile using the test image path. | ||
| final XFile pickedFile = XFile('assets/flutter-mark-square-64.png'); |
There was a problem hiding this comment.
IIRC, you can't read asset files in tests on web, and this would need to be a blob instead on web. @ditman Am I remembering that correctly?
There was a problem hiding this comment.
Yes, this is correct. Here's a couple of examples of XFiles in tests:
|
Even after creating a blob instead of loading an asset, I'm still having the same issue as before with I'm wondering if it's related to this issue? |
Increment version number
|
@ditman Any thoughts on how to structure this test? |
|
@ditman Ping on the test question above. |
|
Looking! |
|
I moved the test to @stuartmorgan if you're happy with the new contents of the README, I think this could land. |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
LGTM with one fix.
|
auto label is removed for flutter/packages/5523, due to - The status or check suite Linux_android android_platform_tests_shard_3 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
The presubmit failure is OOB breakage I just landed a fix for; once that is published I'll re-run. |
|
auto label is removed for flutter/packages/5523, due to - The status or check suite Linux_android android_platform_tests_shard_3 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
flutter/packages@6698b2d...90c876d 2024-04-16 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.24.10 to 3.25.0 (flutter/packages#6545) 2024-04-16 [email protected] [CupertinoIcons] fix broken icons and vertical alignment, bump the version to 1.08 (flutter/packages#6520) 2024-04-16 [email protected] [video_player] Calls `onDestroy` instead of `initialize` in onDetachedFromEngine (flutter/packages#6501) 2024-04-15 [email protected] [image_picker] Adopt code excerpts in README (flutter/packages#5523) 2024-04-15 [email protected] [url_launcher][web] Link should work when triggered by keyboard (flutter/packages#6505) 2024-04-15 [email protected] Manual roll Flutter from 53cba24 to 2e748e8 (19 revisions) (flutter/packages#6541) 2024-04-15 [email protected] Update local_auth_android minSdkVersion to 19 (flutter/packages#6537) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@6698b2d...90c876d 2024-04-16 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.24.10 to 3.25.0 (flutter/packages#6545) 2024-04-16 [email protected] [CupertinoIcons] fix broken icons and vertical alignment, bump the version to 1.08 (flutter/packages#6520) 2024-04-16 [email protected] [video_player] Calls `onDestroy` instead of `initialize` in onDetachedFromEngine (flutter/packages#6501) 2024-04-15 [email protected] [image_picker] Adopt code excerpts in README (flutter/packages#5523) 2024-04-15 [email protected] [url_launcher][web] Link should work when triggered by keyboard (flutter/packages#6505) 2024-04-15 [email protected] Manual roll Flutter from 53cba24 to 2e748e8 (19 revisions) (flutter/packages#6541) 2024-04-15 [email protected] Update local_auth_android minSdkVersion to 19 (flutter/packages#6537) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Improves image_picker_for_web README example and updates it to use code excerpts. Part of [flutter/flutter#102679](flutter/flutter#102679)
Improves image_picker_for_web README example and updates it to use code excerpts.
Part of flutter/flutter#102679
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.