The moment you create a profile on any site, you are asked to upload your pic to create an avatar. If you have an avatar, it’s very useful for you. Because it is so much fun! It represents you in the digital world and no matter how you look in real life. Moreover, there is another reason – privacy.
So here is a free and open-source multicultural avatar maker. Basically, Multiavatar represents people from multiple races, multiple cultures, multiple age groups, multiple worldviews, and walks of life. Hope you enjoy it.
In total, it is possible to generate 12,230,590,464 unique avatars.
Installation and usage
Add multiavatar to your pubspec:
dependencies: multiavatar: any # or the latest version on Pub
var svgCode = multiavatar('X-SLAYER')
avatar with transparent background
var svgCode = multiavatar('X-SLAYER', trBackground: true);
check the example of using multiavatar with svg package Multiavatar + svg package
To understand more, please see the detailed information below:
The Multiavatar combines different aspects of several avatars as well as diverse color themes to create new avatars.
The total number of unique avatars: 48^6 = 12,230,590,464
For features, one of the most important Multiavatar functions of it is to work as an identicon. Generally, every unique avatar can be identified by the unique string of characters associated with the avatar.
The string of characters is also the input for the Multiavatar package, which converts the provided string into a set of 6 double-digit numbers (range 00-47), each representing an individual part of the final avatar.
000000000000 – this string of numbers represents the very first avatar + its A theme. You can also read it like this:
00 00 00 00 00 00.
474747474747 – this is the 12,230,590,464th avatar (or the 16th initial avatar + its “C” color theme).
More info can be found in the
multiavatar.dart file comments.
You can see other articles below:
A Flutter Package providing Avatar Glow Widget
A Flutter package which allows developers to implement circular profile avatar