https://github.com/cretezy/imgix_flutter.dart
An Imgix Flutter wrapper to embed Imgix URLs with options easily
https://github.com/cretezy/imgix_flutter.dart
flutter imgix
Last synced: about 1 month ago
JSON representation
An Imgix Flutter wrapper to embed Imgix URLs with options easily
- Host: GitHub
- URL: https://github.com/cretezy/imgix_flutter.dart
- Owner: Cretezy
- License: mit
- Created: 2018-12-11T05:30:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T23:47:32.000Z (about 3 years ago)
- Last Synced: 2025-06-01T03:16:51.008Z (about 1 year ago)
- Topics: flutter, imgix
- Language: C++
- Homepage: https://pub.dartlang.org/packages/imgix_flutter
- Size: 258 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Imgix Flutter
An [Imgix](https://imgix.com) Flutter wrapper to embed Imgix URLs with options easily. Uses [`imgix`](https://pub.dartlang.org/packages/imgix).
## Install
Add this to your package's `pubspec.yaml` file:
```yaml
dependencies:
imgix_flutter: ^0.3.0
```
## Usage
[API Docs](https://pub.dartlang.org/documentation/imgix_flutter/latest)
```dart
import 'package:imgix_flutter/imgix_flutter.dart';
import 'package:imgix/imgix.dart';
import 'package:flutter/material.dart';
main() {
final url = "https://assets.imgix.net/examples/treefrog.jpg";
final options = ImgixOptions(
width: 300,
height: 400,
format: ImgixFormat.jpg,
quality: 85,
auto: [ImgixAuto.compress],
);
runApp(MaterialApp(
home: Scaffold(
body: Center(
child: ImgixImage(
url,
options: options,
),
),
),
));
}
```
## Features and bugs
> Some options are missing, please report them to [`imgix`'s issue tracker](https://github.com/Cretezy/imgix.dart).
Please file feature requests and bugs at the [issue tracker](https://github.com/Cretezy/imgix_flutter.dart).