The Wayback Machine - https://web.archive.org/web/20200919182142/https://github.com/Cretezy/imgix_flutter.dart
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Imgix Flutter

An Imgix Flutter wrapper to embed Imgix URLs with options easily. Uses imgix.

Install

Add this to your package's pubspec.yaml file:

dependencies:
  imgix_flutter: ^0.1.1

Usage

API Docs

import 'package:imgix_flutter/imgix_flutter.dart';
import 'package:imgix/imgix.dart';
import 'package:flutter/material.dart';

main() {
  final url = "https://test.imgix.net/test.png";
  final options = ImgixOptions(
    width: 100,
    height: 200,
    format: ImgixFormat.jpg,
    quality: 75,
    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.

Please file feature requests and bugs at the issue tracker.

About

An Imgix Flutter wrapper to embed Imgix URLs with options easily

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.