Dart client for the Thumbor image service
thumbor dependency to your
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
final thumbor = Thumbor(hostname: "http://thumbor.example.com", key: "123456789"); thumbor .buildImage("http://images.google.com/im-feeling-lucky.jpg") .toUrl();
Add this to your package's pubspec.yaml file:
dependencies: thumbor: ^1.0.0
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Aug 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Document public APIs. (-1 points)
74 out of 74 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
lib/src/thumbor_url.dart. (-1.99 points)
lib/src/thumbor_url.dart reported 4 hints:
line 208 col 9: Use isEmpty instead of length
line 216 col 29: Use isEmpty instead of length
line 383 col 29: Use isEmpty instead of length
line 408 col 29: Use isEmpty instead of length
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
thumbor.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is getting outdated. (-8.22 points)
The package was last published 56 weeks ago.