flutter_avataaar library

Classes

Avataaar
Data class of your current avatar. Can generate a url using toUrl function as well as a png from svg getPngFromSvg
AvataaarGenerator
AvataaarPart
Compile the List of pieces to build the url.
AvataaarPicture
Easiest way to render the Avataaar using the SvgPicture package. Builder could be customized.
AvataaarsApi
Contains the baseUrl and color when the svg is fetched.
Clothes
Eyebrow
Eyes
FacialHair
Mouth
Skin
Skin class with the skinColor
Style
Top

Enums

AccessoriesType
Accesories types
AvatarStyle
Avatar styles, unfourtunately AvatarStyle.transparent is not recognized by SvgPicture package due to Style
ClotheColor
Clothe color types
ClotheType
Clothe types
EyebrowType
Eyebrow types
EyeType
Eye types
FacialHairColor
Facial hair color type
FacialHairType
Facial hair types
GraphicType
Graphic types
HairColor
Hair color types
HatColor
Hat color types
MouthType
Mouth types
SkinColor
Skin color types
TopType
Top types

Properties

accessoriesTypeNames List<String>
Accessories types translation keys
final
avatarStyleNames List<String>
Avatar styles tranlation keys
final
clotheColorNames List<String>
Clothe color tranlation keys
final
clotheTypeNames List<String>
Clothe translation keys
final
eyebrowTypeNames List<String>
Eyebrow translation keys
final
eyeTypeNames List<String>
Eye translation keys
final
facialHairColorNames List<String>
Facial hair color translation keys
final
facialHairTypeNames List<String>
Facial hair translation keys
final
graphicTypeNames List<String>
Graphic type tranlation keys
final
hairColorNames List<String>
Hair color translation keys
final
hatColorNames List<String>
Hat colors translation keys
final
mouthTypeNames List<String>
Mouth translation keys
final
skinColorNames List<String>
Skin color translation keys
final
topTypeNames List<String>
Top types translation keys
final

Functions

randomPiece<T>(List<T> pieces) → T
Randomize part of the avataaar with a given list