avatar_builder_core 0.3.1
avatar_builder_core: ^0.3.1 copied to clipboard
Pure Dart library for building avataaars-style cartoon avatars from customizable attributes using SVG. No Flutter dependency.
Changelog #
0.3.1 #
- Correct
--base-hrefin GitHub deployment workflow to/avatar_builder/. - Fix SVG sample images not rendering in README on GitHub.
0.3.0 #
- Add
FileAssetLoadertoavatar_builder_corefor easy asset loading indart:ioenvironments. Available via a separate import:import 'package:avatar_builder_core/file_asset_loader.dart'. - Update READMEs with improved usage examples.
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.