Skip to content
pubscout

jdenticon_dart

2.0.0, released 6 years ago by an unverified publisher

Generates SVG identicon strings from a text input.

WASM-ready
$ flutter pub add jdenticon_dart
Source repository

What it does

The package hashes a given string and creates a deterministic SVG identicon. It provides customization options for colors, saturation, and background. The output is a raw SVG string that can be rendered with any SVG widget.

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

Use it when

  • You need lightweight, deterministic avatar icons without external image assets
  • You want to generate identicons on the fly in Dart or Flutter
  • You prefer a pure‑Dart solution without platform channels

Skip it when

  • You need built‑in widget rendering of the identicon
  • You require raster image formats (PNG/JPG) instead of SVG

Strengths

  • Zero runtime dependencies besides crypto
  • Supports null‑safety and works on all Flutter platforms
  • Customizable appearance via builder options

Weaknesses

  • Only produces SVG strings, you must add a renderer yourself
  • No caching or image generation utilities included

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
String rawSvg = Jdenticon.toSvg('example');
Widget icon = SvgPicture.string(rawSvg, width: 64, height: 64);

Works with

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