image_network 2.1.0 image_network: ^2.1.0 copied to clipboard
Image Network is a package that allows you to render images on the web using CanvasKit without having problems with CORS
Image Network #
Image Network is a package that allows you to render images on the web using CanvasKit without having problems with CORS.
Features #
- Image Manager (Android - Ios -Web)
- Use the CanvasKit renderer.
- No problems with CORS
- Fast loading
- Image cache (Android && Ios)
- Image from Url:
- (Web) accept http or https image
- (Android && Ios) accept https images
Installation #
Add image_network
as a dependency in your pubspec.yaml file .
Import Photo View:
import 'package:image_network/image_network.dart';
Usage #
URLs Images
String imageUrl = "https://scaffoldtecnologia.com.br/wp-content/uploads/2021/10/app-2.png";
Image Network
ImageNetwork(
image: imageUrl,
height: 450,
width: 250,
duration: 1500,
curve: Curves.easeIn,
onPointer: true,
cacheAndroidIos: true,
fitAndroidIos: BoxFit.cover,
fitWeb: BoxFitWeb.cover,
borderRadius: BorderRadius.circular(70),
onTap: () {
debugPrint("©gabriel_patrick_souza");
},
)
License #
Copyright (c) 2021 Gabriel Patrick Souza