gravatar_utils
A Dart package to generate the URLs required to request Gravatar Images and Profile data.
Features
Generate the URLs for all Gravatar Requests (except PHP Profile Data).
Getting started
Add gravatar_utils
as a dependency in your pubspec.yaml file.
Usage
With Gravatar
object:
import 'package:gravatar_utils/gravatar_utils.dart';
void main() {
final gravatar = Gravatar('example@email');
print('Gravatar image URL: ${gravatar.image(scheme: 'https')}');
}
With String
extension:
import 'package:gravatar_utils/gravatar_utils.dart';
import 'package:gravatar_utils/gravatar_utils_extensions.dart';
void main() {
print('Gravatar image URL: ${'example@email'.gravatarImageUrl(scheme: 'https')}');
}
Contributing
Contributions are always welcome!