Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielpatricksouza/image_network
https://github.com/gabrielpatricksouza/image_network
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gabrielpatricksouza/image_network
- Owner: gabrielpatricksouza
- License: mit
- Created: 2021-12-10T15:40:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-19T14:03:33.000Z (over 1 year ago)
- Last Synced: 2024-08-02T12:24:31.394Z (5 months ago)
- Language: C++
- Size: 14.4 MB
- Stars: 12
- Watchers: 2
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# π 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)
* 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:
```dart
import 'package:image_network/image_network.dart';
```## π¨βπ» How To Use
#### URL Image
``` dart
String imageUrl = "https://scaffoldtecnologia.com.br/wp-content/uploads/2021/10/app-2.png";
```#### Image Network
```dart
ImageNetwork(
image: imageUrl,
height: 150,
width: 150,
duration: 1500,
curve: Curves.easeIn,
onPointer: true,
debugPrint: false,
fullScreen: false,
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](https://github.com/gabrielpatricksouza/image_network/blob/master/LICENSE)