Skip to content

[flutter_svg] svg asset does not attempt to load again after networking or other loading issue has been resolved #182486

Open

Description

@tsakoyan

Steps to reproduce

  1. Include an svg asset with flutter_svg and flutter_gen on platform_web
  2. Start the browser without requesting the asset yet
  3. Turn off network completely - either naturally or through the browser developer options
  4. Request the asset and fail of course to load it
  5. Turn on the network
  6. Refresh the widget with the asset, requesting again. Nothing happens

Expected results

After the loading problem resolves and the asset is requested again, the loading should be retried showing the asset.

Actual results

The asset does not load again, because the failed future stays in the pendingResults part of the svg cache

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

[✓] Flutter (Channel stable, 3.38.9, on macOS 15.7.3 24G419 darwin-arm64, locale en-DE) [702ms]
• Flutter version 3.38.9 on channel stable at /Users/username/fvm/versions/3.38.9
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 67323de (3 weeks ago), 2026-01-28 13:43:12 -0800
• Engine revision 587c18f
• Dart version 3.10.8
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging

[✓] Chrome - develop for the web [10ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (2 available) [7.2s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.7.3 24G419 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 144.0.7559.133

[✓] Network resources [279ms]
• All expected network resources are available.

! Doctor found issues in 1 category.

Activity

  1. mbcorona commented on Feb 18, 2026

    @mbcorona
    Member

    Thanks for the report and the PR @tsakoyan
    Labeling for team-ecosystem review.

  2. added
    packageflutter/packages repository. See also p: labels.
    and removed on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: flutter_svgThe Flutter SVG drawing packagespackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-engineOwned by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions