interactive_svg 0.0.2 copy "interactive_svg: ^0.0.2" to clipboard
interactive_svg: ^0.0.2 copied to clipboard

A lightweight Flutter package for rendering SVGs with selectable, interactive regions, supporting hit-testing, bounds extraction, and zoom/scroll functionality.

0.0.1 #

  • Initial interactive_svg source

0.0.1+1 #

  • Fix bounds transform and scale calculation

0.0.2 #

  • Changes to bounds calculation:
    • Add SizeReporter to listen for and accurately confirm size change events.
    • Split bounds loading into two clear steps:
      • parseSvgBounds: load and extract the raw list of bounds from the SVG (expressed in SVG viewBox coordinate space).
      • scaleSvgBounds: convert/scale the extracted bounds into widget coordinates using actual size, BoxFit, and Alignment.
    • Compatibility note: parseSvgBounds returns unscaled data; call scaleSvgBounds to obtain bounds in widget coordinates.
1
likes
150
points
84
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package for rendering SVGs with selectable, interactive regions, supporting hit-testing, bounds extraction, and zoom/scroll functionality.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, copy_with_extension, flutter, flutter_svg, meta, path_drawing, vector_math, xml

More

Packages that depend on interactive_svg