Skip to content
forked from blossom/gravatar

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

License

Notifications You must be signed in to change notification settings

mploigt/gravatar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("[email protected]");
  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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%