image_network 2.6.0 copy "image_network: ^2.6.0" to clipboard
image_network: ^2.6.0 copied to clipboard

PlatformiOSweb

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.

Build

πŸ“š Features #

  • Image Manager (Android - iOS - Web)
  • Use the CanvasKit renderer
  • No problems with CORS
  • Fast loading
  • Image cache (Android && iOS)
    • Recommended using with CachedNetworkImage version 2.2.0 or newer
  • Image from Url:
    • (Web) accept http or https image
    • (Android && iOS) accept https images
  • Supported Image Formats
    • PNG
    • JPEG
    • GIF / Animated GIF

πŸ”Œ Installation #

Add image_network as a dependency in your pubspec.yaml file .

Import Image Network:

import 'package:image_network/image_network.dart';

πŸ‘¨β€πŸ’» How To Use #

URL Image

String imageUrl = "https://storage.googleapis.com/cms-storage-bucket/a9d6ce81aee44ae017ee.png";

Image Network

ImageNetwork(
    image: imageUrl,
    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),
    onLoading: const CircularProgressIndicator(
      color: Colors.indigoAccent,
    ),
    onError: const Icon(
      Icons.error,
      color: Colors.red,
    ),
    onTap: () {
      debugPrint("Β©gabriel_patrick_souza");
    },
  )

β˜€οΈ License #

Copyright (c) 2021 Gabriel Patrick Souza

MIT License

160
likes
140
points
17.3k
downloads

Publisher

unverified uploader

Weekly Downloads

Image Network is a package that allows you to render images on the web using CanvasKit without having problems with CORS

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, webviewimage

More

Packages that depend on image_network