0 purchases
simple gravatar
Simple Gravatar #
Gravatar library for Dart 2.
Usage #
import 'package:simple_gravatar/simple_gravatar.dart';
void main() {
var gravatar = Gravatar('[email protected]');
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
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.