adaptive_network_image 0.1.2 copy "adaptive_network_image: ^0.1.2" to clipboard
adaptive_network_image: ^0.1.2 copied to clipboard

A Flutter widget that displays images from external URLs on web, handling CORS restrictions with a multi-strategy fallback approach.

0.1.2 #

  • Fix images losing aspect ratio with directImg and iframe strategies when using fixed dimensions.
  • Improve example app with BoxFit toggle and colored container borders for visual testing.

0.1.1 #

  • Add preventNativeInteraction parameter (default true) to block native browser drag and right-click on web images, allowing Flutter's gesture system to handle all interactions.
  • Improve README to clarify the package is built primarily for web with all-browser support, and uses Flutter's default Image.network on other platforms.

0.1.0 #

  • Multi-strategy CORS image loading with ordered fallback: directImg, corsProxy, iframe.
  • Sandboxed iframe strategy with no inline scripts for maximum compatibility.
  • LRU cache with byte-based eviction for resolved strategies and image bytes.
  • Configurable strategy order, timeout, and fade-in animation.
  • URL validation before loading.
  • Controllable logging via adaptiveImageLogging flag (off by default).
  • Platform support: full CORS handling on Web; Image.network fallback on mobile and desktop.
1
likes
160
points
114
downloads

Documentation

API reference

Publisher

verified publisherprimecode.solutions

Weekly Downloads

A Flutter widget that displays images from external URLs on web, handling CORS restrictions with a multi-strategy fallback approach.

Repository (GitHub)
View/report issues

Topics

#cors #image #web #flutter-web

License

MIT (license)

Dependencies

flutter, http, web

More

Packages that depend on adaptive_network_image