v2.6.0image_network
Image Network 是一個套件,可讓您在 Web 上使用 CanvasKit 渲染影像,而不會遇到 CORS 問題。
160喜歡 1.2萬近 30 天下載150Pub 分數
iOSWeb
gabrielpatricksouza/image_network open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
Image Network is a package that allows you to render images on the web using CanvasKit without having problems with CORS.
Add image_network as a dependency in your pubspec.yaml file .
Import Image Network:
import 'package:image_network/image_network.dart';
String imageUrl = "https://storage.googleapis.com/cms-storage-bucket/a9d6ce81aee44ae017ee.png";
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");
},
)
Copyright (c) 2021 Gabriel Patrick Souza
依賴清單 5 項
{"sdk":"flutter"}>= 0.13.6 < 2.0.0>= 0.0.4 < 1.0.0{"sdk":"flutter"}^2.0.1先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗