Network Image Plus is a Flutter package that allows you to rendered images on the web using CanvasKit without CORS issues.
This plugin uses HtmlElementView to create an img element and set the src to the url provided.
If the plugin is running on a io platform, it will use the regular Image.network widget.
Add network_image_plus as a dependency in your pubspec.yaml file.
network_image_plus: ^1.0.6or install it using the command
flutter pub add network_image_plusImport the package in your dart file
import 'package:network_image_plus/network_image_plus.dart';
const image = NetworkImagePlus(
url: 'https://example.com/image.png',
width: 100,
height: 100,
fit: BoxFit.cover,
);