simple_gravatar 1.1.0 icon indicating copy to clipboard operation
simple_gravatar: ^1.1.0 copied to clipboard

A library to generate Gravatar URL in Dart 2 based on gravatar specs.

example/main.dart

import 'package:simple_gravatar/simple_gravatar.dart';

void main() {
  var gravatar = Gravatar('hello@example.com');
  var url = gravatar.imageUrl(
    size: 100,
    defaultImage: GravatarImage.retro,
    rating: GravatarRating.pg,
    fileExtension: true,
  );

  print('Gravatar URL:      $url');
  print('Gravatar QR URL:   ${gravatar.qrUrl()}');
  print('Gravatar JSON URL: ${gravatar.jsonUrl()}');
}
13
likes
120
pub points
80%
popularity

Publisher

unverified uploader

A library to generate Gravatar URL in Dart 2 based on gravatar specs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

crypto

More

Packages that depend on simple_gravatar