Skip to content

Conversation

@memishood
Copy link
Contributor

closes flutter/flutter#158612

Description

  • Implemented errorBuilder callback to handle loading failures

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@domesticmouse
Copy link
Contributor

Hey @memishood, thank you for your Pull Request.

Can you please add a test to confirm that this code works as expected?

Copy link
Contributor

@domesticmouse domesticmouse left a comment

Choose a reason for hiding this comment

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

Please add tests

@memishood
Copy link
Contributor Author

Please add tests

Alright, I will be adding them soon

Copy link
Contributor

@domesticmouse domesticmouse left a comment

Choose a reason for hiding this comment

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

LGTM, PTAL @stuartmorgan

@stuartmorgan-g
Copy link
Collaborator

@jonahwilliams (or someone else in the engine team) should be the secondary reviewer for flutter_svg changes.

@stuartmorgan-g stuartmorgan-g requested review from jonahwilliams and removed request for stuartmorgan-g January 7, 2025 19:34
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@domesticmouse domesticmouse added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 8, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jan 8, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Jan 8, 2025

auto label is removed for flutter/packages/8364, due to - The status or check suite Windows_x64 dart_unit_tests_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@domesticmouse
Copy link
Contributor

@stuartmorgan Who can deflake the broken CI test? I can't see the failure.

@memishood
Copy link
Contributor Author

Perhaps using File('') is causing the issue. Unfortunately, I don't have a Windows machine to reproduce the error and fix it. If needed, I can delete only the failed test.

@stuartmorgan-g
Copy link
Collaborator

@stuartmorgan Who can deflake the broken CI test? I can't see the failure.

It's not flake; I can reproduce it locally. There just isn't any output; AFAICT from debugging, calling readAsBytesSync() on File('') crashes the test executable.

I tried changing it to File('nosuchfile') and that works fine, so I think File('') is just not what we want in the test.

@domesticmouse domesticmouse added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 9, 2025
@auto-submit auto-submit bot merged commit c6caf68 into flutter:main Jan 9, 2025
77 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 9, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jan 9, 2025
flutter/packages@3fc6b7a...6554751

2025-01-09 [email protected] [webview_flutter_wkwebview] Add a
listener for the canGoBack property change on the iOS platform.
(flutter/packages#8203)
2025-01-09 [email protected] [flutter_svg]
Implement errorBuilder callback (flutter/packages#8364)
2025-01-08 [email protected]
[interactive_media_ads] Adds remaining methods for internal wrapper of
the iOS native `IMAAdDisplayContainer`. (flutter/packages#8153)
2025-01-08 [email protected] [go_router_builder] Add a fallback for
a not null List or Set param (flutter/packages#8349)
2025-01-08 [email protected] Manual roll Flutter (stable)
from 8495dee to 17025dd (2 revisions) (flutter/packages#8396)
2025-01-08 [email protected]
[ci][video_player_android][camera_android_camerax] Manual roll and fix
tests (flutter/packages#8391)
2025-01-07 [email protected] [ci] Run web tests in wasm (unit +
integration). (flutter/packages#8111)
2025-01-07 [email protected] [camera_platform_interface] Add API support query
for image streaming (flutter/packages#8307)
2025-01-07 [email protected]
[camera_android_camerax][video_player_android] Suppresses deprecation of
the `SurfaceProducer.Callback.onSurfaceDestroyed` method
(flutter/packages#8388)
2025-01-07 [email protected] Bump Remaining Plugin Example Apps to
targetSdkVersion >= 34 and compileSdkVersion >= 34
(flutter/packages#8361)
2025-01-07 [email protected] Replace
`onSurfaceCreated` with `onSurfaceAvailable`. (flutter/packages#8384)

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] 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
androidseb pushed a commit to androidseb/packages that referenced this pull request Jun 8, 2025
closes flutter/flutter#158612

## Description
- Implemented errorBuilder callback to handle loading failures
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
closes flutter/flutter#158612

## Description
- Implemented errorBuilder callback to handle loading failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: flutter_svg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flutter_svg] Adding an error widget

4 participants