PackageTrack
Sign in Get early access

adaptive_svg

Platform-adaptive SVG rendering. DOM <svg> on web, flutter_svg on native.

0.5.0 rlch/adaptive_svg

What this package is like to depend on

Last release 3 months ago

28 Apr 2026

Too new to tell

only 2 release windows

Nearly every release is documented

notes for 4 of 4 stable releases

Nothing withdrawn

no release was ever pulled

4 months old

4 releases · first in 2026

4 releases in the last 12 months

see the full history below

Release timeline

4 releases · Apr 2026 to Apr 2026
Release Pre-release

Releases

latest 4
  1. 0.5.0 28 Apr 2026
    Release notes

    New: borderRadius parameter

    • borderRadius — rounds the corners of the rendered SVG.
    • On web, applied as CSS border-radius + overflow: hidden on the wrapper <div> that hosts the platform view. Flutter's ClipRRect doesn't reliably clip HtmlElementView content, so the rounding is baked into the DOM container directly.
    • On native, falls back to wrapping the rendered widget in a ClipRRect.
    • Available on both AdaptiveSvg(...) and AdaptiveSvg.asset(...).
    Open source →
  2. 0.3.0 10 Apr 2026
    Release notes

    feat: add interceptPointer option for web platform view click-through…

    Open source →
    Release notes

    New: interceptPointer option (removed in 0.4.0)

    • Added an interceptPointer parameter that overlaid a PointerInterceptor on top of the HtmlElementView. Removed in 0.4.0 in favor of gestures: true — see above.

    Dependency

    • Added pointer_interceptor: ^0.10.1 as a dependency.
    Open source →
  3. 0.2.0 09 Apr 2026
    Release notes

    fix(web): DOMParser + cached factories + CORS + pointer-events opt-in…

    Open source →
    Release notes

    Web rendering fixes

    • Parse SVG with DOMParser('image/svg+xml') instead of div.innerHTML = svg. innerHTML parses input as HTML — SVG namespaces on child elements were inconsistently preserved, and <image href> elements could be misparsed as HTML <img> fallbacks (which silently dropped cross-origin loads). DOMParser parses the input as real XML, preserves every namespace, and exposes parse errors through a <parsererror> element.
    • Cache HtmlElementView view factories keyed by (svg, interactive, imageCrossOrigin). Previously every widget rebuild incremented a global _viewId counter and registered a brand-new platform view, leaking a factory per frame on any list / scroll-based UI.

    New web-only options

    • interactive (default true) — when false, applies pointer-events: none to both the container <div> and the injected <svg> root so taps and hovers flow through to the Flutter widget layer underneath. Useful for static thumbnails inside a GestureDetector.
    • imageCrossOrigin (default null) — when set to CrossOrigin.anonymous or CrossOrigin.useCredentials, applies the crossorigin attribute to every <image> child of the parsed SVG. Required for cross-origin images to load under Cross-Origin-Embedder-Policy: require-corp (used by apps that need SharedArrayBuffer, including Flutter Rust Bridge's threaded wasm mode) when the origin server only sends Access-Control-Allow-Origin and not Cross-Origin-Resource-Policy.

    Both parameters are web-only and silently ignored on native platforms.

    Open source →
  4. 0.1.0 09 Apr 2026
    Release notes

    Replace broken base64 data with valid Python-generated PNG and JPEG.
    Remove unnecessary PUB_TOKEN secret from CI — pub.dev OIDC handles auth
    via id-token permission.

    Open source →
    Release notes
    • Initial release
    • DOM <svg> rendering on web
    • flutter_svg delegation on native platforms
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive