thumbor 0.0.2 copy "thumbor: ^0.0.2" to clipboard
thumbor: ^0.0.2 copied to clipboard

outdatedDart 1 only

A Thumbor client for Dart

Dart Thumbor client #

Dart client for the Thumbor image service

Usage #

Add thumbor dependency to your pubspec.yaml:

dependencies:
  thumbor: any

In your Dart code, import package:thumbor/thumbor.dart and create a Thumbor using the hostname of your server and optionally your key:

import 'package:thumbor/thumbor.dart';

final thumbor = Thumbor(hostname: "http://thumbor.example.com", key: "123456789");

Then you can use this instance to create ThumborUrl


final thumbor = Thumbor(hostname: "http://thumbor.example.com", key: "123456789");
thumbor
  .buildImage("http://images.google.com/im-feeling-lucky.jpg")
  .toUrl();