avatar_builder_core 0.2.0
avatar_builder_core: ^0.2.0 copied to clipboard
Pure Dart library for building avataaars-style cartoon avatars from customizable attributes using SVG. No Flutter dependency.
Changelog #
0.2.0 #
- Breaking: Split into
avatar_builder_core(pure Dart, no Flutter dependency) andavatar_builder(Flutter widgets) packages in a Dart workspace monorepo. - Color fields on
Avataaarnow useintARGB values instead ofdart:uiColor, with reverse-lookup getters for palette enums. - Add
toJson()/fromJson()serialisation onAvataaar. - Simplify
Avataaar.random()with declarative weight maps for more readable and tunable random avatar generation. - Add
--circleflag togenerate.dartCLI tool. - Strip
<filter>elements from SVG fragments for cleaner output. - Add 10 sample avatar SVGs.
0.1.1 #
- Fix
.pubignoreexcluding SVG asset files from the published package.
0.1.0 #
- Initial release.
AvatarWidgetfor rendering avataaars-style cartoon avatars.Avataaarmodel with full customization of hair, eyes, eyebrows, mouth, facial hair, clothing, accessories, and skin color.Avataaar.random()factory for generating random avatars.SvgCachefor efficient LRU caching of SVG asset fragments.- 140+ optimized SVG fragments covering all avatar component variations.
- Circle and transparent background styles via
AvatarStyle.