An easy-to-use library for generating gravatar image urls in Dart
Dart
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
lib
test
.gitignore
LICENSE
README.md
pubspec.yaml

README.md

Gravatar

An easy-to-use library for generating gravatar image urls in Dart.

For more information about Gravatar please visit https://gravatar.com

Example

  var gravatar = new Gravatar("hello@blossom.io");
  gravatar.imageUrl();

Which will return https://secure.gravatar.com/avatar/658b1158409b348bb2cb3e5bef734d1b

Blossom

API

imageUrl({int size, String defaultImage, bool forceDefault: false, String rating}) Generates an image url

  • size (Imagesize)
  • defaultImage (Url or Kind for the Fallback Image)
  • forceDefault (force the Fallback Image)
  • rating (restrict to appropriate Images)

For further information about the parameters please visit https://en.gravatar.com/site/implement/images/

Install

Gravatar is a pub package. To install it you can add it to pubspec.yaml. For example:

name: my-app
dependencies:
  gravatar: any

Support

You can file issues at https://github.com/blossom/gravatar/issues

Pull requests are very welcome :)

Testsuite

Build Status

Build Status

Trivia

This library is a by-product of our Dart efforts at Blossom.