v0.1.14flutter_avataaar
Avataaars API के लिए Flutter वрапर विजेट जो एवटार छवियों को उत्पन्न और प्रदर्शित करने की अनुमति देता है।
28लाइक 7330-दिन डाउनलोड60Pub अंक
प्लेटफ़ॉर्म डेटा नहीं
frananleo/flutter_avataaar open-source repository details.
{"sdk":"flutter"}^3.1.0^3.1.2^1.0.0^0.13.4^3.0.4^2.0.4^2.0.9^1.0.1यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Flutter wrapper widget for Avataaars API - a free online avatar generator for anyone to make their beautiful personal avatar easily.
flutter-avataaar
// Create avatar with default constructor
Avataaar(
skin: Skin.pale,
top: Top(
topType: TopType.longHairCurvy,
accessoriesType: AccessoriesType.Round,
facialHair: FacialHair.beardMagestic(
facialHairColor: FacialHairColor.BlondeGolden,
),
),
);
// Randomize all properties
Avataaar.random();
// Or mix both
Avataaar.random(
skin: Skin.pale,
top: Top(
topType: TopType.longHairCurvy,
accessoriesType: AccessoriesType.Round,
facialHair: FacialHair.random,
),
);
AvataaarGenerator
(
avataaar: avataaar,
onTranslateKey: (String key) {
return Translate.get(key);
}
onUpdateAvataaar:() {setState((){});},
);
// By default package will use SvgPicture to render the image. AvataaarPicture could be used to create a custom
// [builder] constructor and create widget for given image url:
AvataaarPicture.builder(
builder: (context, avataaar) {
// ...
},
)
Use Avataaar.toJson() and Avataaar.fromJson(String) methods to serialize/deserialize avatars.
Use the funtion getPngFromSvg from the class Avataaar to get the png File.