पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

flutter_boring_avatars कवर
पैकेज विवरणv2.1.0

flutter_boring_avatars

बोरिंग अवतार उपयोगकर्ता नाम और रंग पैलेट के आधार पर अद्वितीय अवतार बना सकते हैं।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
2.5 हज़ार
लाइक
54
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add flutter_boring_avatars

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Flutter Boring Avatars एक उपयोगकर्ता नाम और रंग पैलेट से अद्वितीय और दृश्य रूप से भिन्न अवतार बनाता है। यह बाहरी छवि स्रोतों के बिना ऐप में प्रोफ़ाइल छवियाँ प्रदर्शित करने का एक सरल, कस्टमाइज़ करने योग्य तरीका प्रदान करता है। अवतार एल्गोरिथ्मिक रूप से बनाए जाते हैं ताकि अद्वितीयता और प्लेटफॉर्मों के बीच सुसंगतता सुनिश्चित की जा सके। चैट इंटरफ़ेस, उपयोगकर्ता प्रोफ़ाइल या किसी भी ऐप के लिए एक साफ़, न्यूनतम अवतार समाधान के लिए आदर्श है। Android, iOS, Web, macOS, Windows और Linux सहित सभी प्रमुख Flutter प्लेटफॉर्म को समर्थन देता है।

उपयोग

  • उपयोगकर्ता प्रोफ़ाइल प्रदर्शित करता है
  • चैट इंटरफेस
  • अनामिक उपयोगकर्ता प्रतिनिधित्व
  • न्यूनतम उपयोगकर्ता इंटरफेस डिज़ाइन
  • बहु-उपयोगकर्ता डैशबोर्ड

मुख्य विशेषताएँ

  • उपयोगकर्ता नाम-आधारित अवतार उत्पादन
  • कस्टमाइज़ करने योग्य रंग पैलेट
  • प्लेटफॉर्म के अनुकूल समर्थन
  • अद्वितीय एवोटार पैटर्न
  • हल्का और आसान एकीकरण

इनके लिए उपयुक्त

  • सरल प्रोफ़ाइल छवि की आवश्यकता है
  • बहुत से उपयोगकर्ताओं वाले ऐप
  • डिज़ाइन-केंद्रित एप्लिकेशन
  • कम बैंडविड्थ वातावरण
  • प्रोटोटाइपिंग और एमवीपी

विचार योग्य बातें

  • रंग और उपयोगकर्ता नाम के अलावा सीमित कस्टमाइजेशन
  • ब्रांडेड एवाटार्स के लिए उपयुक्त नहीं
  • कोई निर्मित छवि फॉलबैक नहीं
  • अद्वितीयता के लिए निर्धारक एल्गोरिदम पर निर्भर करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Github

flutter_boring_avatars

Pub Version (including pre-releases)

English | 中文

Features

Boring avatars can generate unique avatars based on the username and color palette.

This project is a Flutter implementation of Boring Avatars.

It differs from the original project in its implementation, using Canvas for rendering and adding transition animations.

Check out the Web Demo to experience the effect.

Screenshots

preview1.png

Installation

Add the dependency in your pubspec.yaml file:

dependencies:
  flutter_boring_avatars: any # or the latest version on Pub

Usage

Get a simple avatar

BoringAvatar(name: "Maria Mitchell", type: BoringAvatarType.marble);

Get an animated avatar that has a nice transition animation when the name changes

AnimatedBoringAvatar(
  name: "Maria Mitchell",
  type: BoringAvatarType.marble,
  duration: const Duration(milliseconds: 300),
)

Get an avatar with a custom color palette

final colorPalette = BoringAvatarPalette(Color(0xffA3A948), Color(0xffEDB92E), Color(0xffF85931), Color(0xffCE1836), Color(0xff009989));

BoringAvatar(name: "Maria Mitchell", palette: colorPalette);

Set default type and palette, applicable only for BoringAvatar and AnimatedBoringAvatar

build(context) {
  return DefaultBoringAvatarStyle(
    type: BoringAvatarType.marble, 
    palette: colorPalette,
    child: Column(
      children: [
        BoringAvatar(name: "Maria Mitchell"),
        BoringAvatar(name: "Alexis Brooks"),
        BoringAvatar(name: "Justin Gray"),
      ]
    ),
  );
}

Use ShapeBorder to control the avatar shape and add a border

BoringAvatar(
  name: "Maria Mitchell",
  type: BoringAvatarType.marble,
  shape: OvalBorder(), // or RoundedRectangleBorder(borderRadius: BorderRadius.circular(16))
);

Use the avatar for Decoration, it also supports transition animations when used in AnimatedContainer

Container(
  decoration: BoringAvatarDecoration(
    avatarData: BoringAvatarData.generate(name: name),
  ),
);

Export the avatar as an image

final avatarData = BoringAvatarData.generate(name: name);
final image = await avatarData.toImage(size: const Size.square(256));
final pngByteData = await image.toByteData(format: ImageByteFormat.png);

Thanks

Thanks to the developers of Boring Avatars.

The example uses the beautiful palette project from Matt DesLauriers.

If you like this project, please give me a star.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।