Skip to content
pubscout

random_avatar

0.0.8, released 4 years ago by flutter-doctor.com

Generate over 12 billion unique multicultural avatars and SVG widgets from strings.

WASM-ready
$ flutter pub add random_avatar
Source repository

What it does

Random Avatar is a Flutter wrapper for Multiavatar that lets you generate unique multicultural avatars and SVG code from strings. It mixes different parts and color themes to produce over 12 billion distinct avatars that can serve as visual identifiers or profile pictures.

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

Use it when

  • You need unique placeholder profile pictures or user avatars generated from strings.
  • You want multicultural and diverse avatar graphics in your Flutter app.

Skip it when

  • You need to load and display real user-uploaded profile photos.
  • You require complex vector animations rather than static avatar graphics.

Strengths

  • Generates billions of unique multicultural avatars from simple string inputs.
  • Provides both Flutter widgets and raw SVG strings with transparent background support.
  • Cross-platform support across Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Limited to the Multiavatar design style and feature set.
  • Not documented for handling custom image uploads or user profile pictures.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

not documented

Widget svgCode = RandomAvatar('saytoonz', height: 50, width: 50);

Alternatives

Packages that do the same job and could replace random_avatar.

  • dice_bear

    A Dart and Flutter wrapper for the DiceBear API to generate unique avatar profile pictures.

  • avatar_plus

    A versatile Flutter package for generating and displaying customizable avatars with random string content. Perfect for user profiles, placeholders, and more.

Works with

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