simple_gravatar 1.0.5

Dart native js
Flutter Android iOS web

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

Simple Gravatar #

Build Status pub package

Gravatar library for Dart 2.

Usage #

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()}');

  // OUTPUT
  //
  // Gravatar URL:      https://www.gravatar.com/avatar/cb8419c1d471d55fbca0d63d1fb2b6ac.png?s=100&d=retro&r=pg
  // Gravatar QR URL:   https://www.gravatar.com/cb8419c1d471d55fbca0d63d1fb2b6ac.qr
  // Gravatar JSON URL: https://www.gravatar.com/cb8419c1d471d55fbca0d63d1fb2b6ac.json
}
4
likes
90
pub points
85%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

subosito@gmail.com

License

MIT (LICENSE)

Dependencies

crypto

More

Packages that depend on simple_gravatar