Skip to content
pubscout

flutter_gravatar

2.0.2, released 6 years ago by beerstorm.net

Builds URLs for Gravatar images and profiles in Flutter and Dart.

WASM-ready
$ flutter pub add flutter_gravatar
Source repository

What it does

Generates URLs for Gravatar images, profile pages, and email hashes. Supports custom parameters such as size, default image fallback, rating, and format types like JSON, XML, VCF, or QR.

AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display user avatars using their Gravatar email address.
  • You want to fetch user profile URLs or vCards from Gravatar.

Skip it when

  • You are looking for a general-purpose image caching or downloading library.
  • You need to upload or manage local image files.

Strengths

  • Simple and straightforward API for constructing Gravatar URLs.
  • Supports null safety and multiple output formats.

Weaknesses

  • Only handles URL generation, does not handle downloading or caching images directly.
  • Limited feature set beyond basic Gravatar support.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
final gravatar = Gravatar("yg@beerstorm.net");
gravatar.imageUrl();
gravatar.profileUrl();

Alternatives

Packages that do the same job and could replace flutter_gravatar.

Works with

Packages commonly used together with flutter_gravatar: ones it builds on, ones built on it, and its own family.