avatar_maker 1.8.0 copy "avatar_maker: ^1.8.0" to clipboard
avatar_maker: ^1.8.0 copied to clipboard

A light-weight and highly customizable SVG avatar library for Flutter apps. Provides a Customizer Widget, CircleAvatar and other utility functions that are ready-to-use.

[Unreleased] #


1.8.0 23/08/2026 #

Added #

  • feat: Add Persian (Farsi) localization support with complete translation strings
  • feat: Add independent width and height parameters to AvatarMakerAvatar for flexible container sizing
  • feat: Add independent svgWidth and svgHeight parameters to AvatarMakerAvatar for precise SVG rendering control
  • feat: Add svgPadding parameter to AvatarMakerAvatar for custom padding around the avatar
  • feat: Add border parameter to AvatarMakerAvatar for custom border styling

Updated #

  • refactor: Update localization lookup to properly support Persian (fa) as a supported locale

1.7.0 21/06/2026 #

Added #

  • feat: Add onItemSelected callback to AvatarMakerCustomizer so consumers can observe unlocked item taps (e.g. for preview-then-apply flows). The selection is still applied immediately by default.
  • feat: EffectCosmeticItem.buildWidget accepts an optional overrideColors parameter so the chosen effect color is forwarded to customBuilder.
  • chore: Add test coverage threshold enforcement to CI workflow (default 100%).

Fixed #

  • fix: EffectCosmeticItemWithColor now respects EffectCosmeticItem.customBuilder when an EffectColorCosmeticItem is selected. Previously, custom effects were silently replaced with the built-in CosmeticEffectWidget whenever an effect color was active.
  • fix: PersistentAvatarMakerController.setJsonOptions now accepts the base AvatarMakerController type instead of requiring the PersistentAvatarMakerController subtype. This removes the type-mismatch footgun between AvatarMakerControllerProvider (which exposes the base type) and the static helper.

Deprecated #

  • chore: BackgroundStyles enum is now @Deprecated. Use BackgroundCosmeticItem instead. The enum will be removed in v2.0.0. No runtime behaviour change.

Tests #

  • test: Add unit tests for EffectCosmeticItem.buildWidget overrideColors propagation and EffectCosmeticItemWithColor customBuilder delegation.
  • test: Add integration tests in AvatarMakerAvatar for the custom-effect + effect-color scenario.
  • test: Add type-signature tests for the widened setJsonOptions.
  • test: Add callback tests for AvatarMakerCustomizer.onItemSelected (fires, propagates correct args, skips locked items, backward compatible).
  • test: Add a static source-level test guarding the @Deprecated annotation on BackgroundStyles.

1.6.0 18/06/2026 #

Added #

  • feat: Add onItemSelected callback to AvatarMakerCustomizer so consumers can observe unlocked item taps (e.g. for preview-then-apply flows). The selection is still applied immediately by default.

Tests #

  • feat: Add temporary locked-item preview support without mutating saved selections.
  • feat: Disable AvatarMakerSaveWidget while a temporary preview is active.
  • feat: Add usePreview parameter to AvatarMakerAvatar (default true) so avatars that live outside the customizer context can opt out of rendering the controller's temporary preview state. When set to false, the avatar always reflects the saved selection even if a preview is active on the controller.
  • docs: Add cosmetic system integration documentation.
  • example: Demonstrate cosmetic categories, animated effects, effect colors, custom effects, level/gold locking, and locked-item preview.
  • example: Set usePreview: false on the home page avatar so locked-item previews activated inside the customizer do not leak onto the home screen.
  • test: Update tests and mocks for cosmetic categories, localization, and save-widget preview guard.
  • test: Cover AvatarMakerAvatar usePreview: true (default) and usePreview: false rendering behavior.

Updated #

  • refactor: Remove direct material_symbols_icons dependency and use Material Icons in tests.
  • chore: Prepare version bump from 1.5.0 to 1.6.0 for the cosmetic system release.

1.5.0 06/12/2025 #

Added #

  • chore: Unit tests for services

Update #

  • refactor: Update color enums (facial_hair_colors.dart, hair_colors.dart, outfit_colors.dart, skin_colors.dart) to use unique itemId patterns (e.g., FacialHairColor/Auburn) instead of shared IDs for improved isItemLocked filtering/logging.

1.4.0 01/12/2025 #

Added #

  • feat: Added lockWidget to AvatarMakerCustomizer to allow custom widgets for locked items.
  • feat: Added onTapLockedItem callback to AvatarMakerCustomizer to handle taps on locked items.
  • docs: Updated documentation for item locking.
  • example: Updated example app to demonstrate custom lock UI and interaction.

1.3.1 29/11/2025 #

Fixed #

  • fix: Example application
  • fix: Components size

1.3.0 29/11/2025 #

Added #

  • feat: Added locked items support. This feature introduces the ability to lock avatar customization items based on specific conditions (e.g., user level, premium membership, etc)
  • docs: Update documentation about locked items

Updated #

  • refactor: Remove deprecated withOpacity method calls

1.2.0 21/11/2025 #

Added #

  • chore: Update lib versions
  • doc: Update documentation about property categories
  • feat: Add isPersistentController method in the controller to let some widgets know if they must be displayed or not. (Like save or reset button in with a non persistant controller)

Updated #

  • chore: Update example bootstrapping to a not deprecated solution

1.1.0 27/06/2025 #

Breaking Changes #

  • feat: move away from getX to provider for state management, introducing AvatarMakerControllerProvider. You will need to wrap your app with AvatarMakerControllerProvider to use the new architecture.
  • refactor: update the IDs of each SVG part to allow faster parsing. Existing avatar will be discarded.

Added #

  • feat: introduce AvatarMakerController to allow creating your own controller
  • feat: introduce NonPersistentAvatarMakerController for cases where you don't need the package to persist the avatar
  • test: improve tests

Updated #

  • feat: update the architecture of each widget to allow injecting a custom controller
  • refactor: rename AvatarMakerController to PersistentAvatarMakerController

0.3.0 26/05/2025 #

Added #

  • ci: Improve github action pipelines

0.2.1 25/05/2025 #

Added #

  • Bump dependencies to latest versions

0.2.0 08/07/2024 #

Added #

  • Add a reset button #15
  • Add a randomizer button #16

Fixed #

  • Example configurations
  • README

0.1.0 30/06/2024 #

Added #

Updated #

  • Refactor and reorganize the code to match with RoadTripMoustache standards (#9)
  • Documentation
    • README.md
  • Update dependencies

Fluttermoji legacy CHANGELOG #

1.0.2 26/03/2023 #

  • Upgrades dependencies

1.0.1 25/10/2022 #

  • Minor bug fix #22

1.0.0 15/02/2022 #

  • Adds FluttermojiThemeData and FluttermojiSaveWidget to the library.
  • Fixes some visual glithes in the appbar of the FluttermojiCustomizer.
  • Minor internal refactoring.
  • Updates dependency versions
  • BREAKING CHANGES
    • The customizer widget no longer has the top row with "Customize" and the save button, and the showSaveWidget property has been removed.
    • The widget's do not set to Material light/dark system theme automatically anymore. This must be implemented using the [theme] property.
    • Refer the doc comments for more details.

0.2.3 03/12/2021 #

  • Updates dependency versions

0.2.2 11/10/2021 #

  • Adds toggle to show/hide save button widget in FluttermojiCustomizer widget.

[0.2.1] - 03/05/2021 #

  • Fixes bug where preview and avatars don't revert to saved version after unsaved edits
  • Adds clearFluttermoji() to FluttermojiFunctions
  • Some optimizations

[0.2.0] - 08/04/2021 #

  • Updates dependencies to their null-safe stable version
  • Migrates package to Null safety
  • Removes dead code

0.2.0-nullsafety.0 10/03/2021 #

  • Updated dependencies to their null-safe version
  • Migrated package to Null safety
  • Remove dead code

0.1.2+1 30/01/2021 #

  • (Hotfix) Cleared some lints for a cleaner code

0.1.2 19/01/2021 #

  • Fixed a bug in decodeFluttermojifromString()

0.1.1 01/01/2021 #

  • Added Material Dark theme support to FluttermojiCircleAvatar
  • Added screenshots to the README.md

[0.1.0] - 24/12/2020 #

  • Added documentation to many APIs and to the README.md as well.
  • Created new utility functions to allow sharing of Fluttermojis to server/DB and decoding them for render using flutter_svg package.
  • Fixed the bug on loading Fluttermoji on first launch.
  • Fixed standalone customizer issues.
  • Description updates
  • Other minor changes and fixes.

0.0.1 23/12/2020 #

  • Initial Release - documentation and instructions pending
18
likes
150
points
1.21k
downloads

Documentation

API reference

Publisher

verified publisherroadtripmoustache.com

Weekly Downloads

A light-weight and highly customizable SVG avatar library for Flutter apps. Provides a Customizer Widget, CircleAvatar and other utility functions that are ready-to-use.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

collection, flutter, flutter_localizations, flutter_svg, intl, provider, shared_preferences

More

Packages that depend on avatar_maker