FLUTTER ECOSYSTEM

saytoonz/random_avatar

隨機頭像是一款多元文化頭像製作工具。120億個獨特的多元文化頭像

random_avatar 專案封面
Stars
59
Forks
17
最近推送(UTC)
2023年12月12日
專案狀態
未封存
Samuel Annin Yeboah GitHub avatar
GITHUB User

Samuel Annin Yeboah ↗

Loves Music

Nsromapa CorporationGhana官方網站 ↗
語言DartC++CMakeHTMLSwiftCKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 4 項
  • flutter{"sdk":"flutter"}
  • crypto^3.0.2
  • flutter_svg^2.0.0+1
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

random_avatar

https://raw.githubusercontent.com/multiavatar/Multiavatar/main/logo.png?v=001

Flutter Wrapper for Multiavatar

Multiavatar is a multicultural avatar maker.

Random Avatar represents people from multiple races, multiple cultures, multiple age groups, multiple worldviews and walks of life.

In total, it is possible to generate 12,230,590,464 unique avatars.

Installation and usage

Add random_avatar to your pubspec:

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

get avatar string

String svgCode = RandomAvatarString('saytoonz');

get avatar string with transparent background

String svgCode = RandomAvatarString('saytoonz', trBackground: true);

get avatar svg widget

Widget svgCode = RandomAvatar('saytoonz', height: 50, width: 50);

get avatar svg widget with transparent background

Widget svgCode = RandomAvatar('saytoonz', trBackground: true, height: 50, width: 50);

check the example (https://github.com/saytoonz/random_avatar/tree/main/example)

Info

To create new avatars, the Multiavatar mixes different parts of different avatars, and different color themes.

The total number of unique avatars: 48^6 = 12,230,590,464

One of the main Multiavatar functions is to work as an identicon. 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 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 random_avatar.dart file comments.

License

A Dart implementation based on multiavatar script for Flutter apps.

Screenshots
https://multiavatar.com/press/img/screenshots/screenshot-02.png?v=001 https://multiavatar.com/press/img/screenshots/screenshot-03.png?v=001 https://multiavatar.com/press/img/screenshots/screenshot-09.png?v=001 https://multiavatar.com/press/img/screenshots/screenshot-10.png?v=001

Visitors Count

Loading