image_network
2.6.0, released 2 years ago by an unverified publisher
Render network images on the web using CanvasKit without CORS issues.
WASM-ready
What it does
Allows developers to render images on the web using CanvasKit without encountering CORS problems. It also supports Android and iOS platforms with customizable loading, error handling, and border radius options.
AI-written summary of version 2.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter web app using CanvasKit and facing CORS issues with network images.
- You need a cross-platform image widget with built-in loading and error placeholders.
Skip it when
- You need advanced offline caching features out of the box without relying on additional packages like CachedNetworkImage.
Strengths
- Solves CORS problems for web images when using CanvasKit.
- Provides built-in customization for loading widgets, error widgets, border radius, and tap actions.
Weaknesses
- Android and iOS support accept https images only.
- Caching on Android and iOS is recommended to be handled with CachedNetworkImage.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
ImageNetwork(
image: "https://storage.googleapis.com/cms-storage-bucket/a9d6ce81aee44ae017ee.png",
height: 350.0,
width: 240.0,
duration: 1500,
curve: Curves.easeIn,
onPointer: true,
debugPrint: false,
backgroundColor: Colors.blue,
fitAndroidIos: BoxFit.cover,
fitWeb: BoxFitWeb.cover,
borderRadius: BorderRadius.circular(70),
)Alternatives
Packages that do the same job and could replace image_network.
- cached_network_image
If you need robust and advanced image caching and management out of the box.
91Compare - image
If you need core image manipulation and decoding utilities.
96Compare