搜索插件、代码仓与 APP 分类

random_avatar 封面
插件详情v0.0.8

random_avatar

随机头像是一款多元文化头像生成器。120亿个独特的多元文化头像

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4910
喜欢数
190
Pub 分数
150

安装插件

flutter pub add random_avatar

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Random Avatar 生成 120 亿个独特的多元文化头像,提供多样且包容的个人资料图片。基于 Flutter 构建,支持 Android、iOS、Web、macOS、Windows 和 Linux 等多个平台。该包非常适合需要个性化用户身份但不依赖外部服务的应用程序。头像在本地生成,确保隐私并实现快速性能。专为开发者设计,提供简单且可自定义的解决方案,适用于聊天界面、社交资料或用户仪表板中的头像创建。

适合场景

  • 用户个人资料图片
  • 聊天应用
  • 社交媒体应用
  • 游戏化界面
  • 匿名用户表示

主要特点

  • 120亿个独特化身
  • 多元文化多样性
  • 本地生成
  • 跨平台支持
  • 可自定义样式
  • Privacy-focused

适合对象

  • 带有用户资料的应用程序
  • 消息和聊天应用
  • 包容性设计项目
  • 使用逼真的虚拟形象进行原型设计
  • 离线优先的应用程序

使用建议

  • 超出样式的有限自定义
  • 无实时头像更新
  • 依赖预生成的资源
  • 不适用于动态头像动画
  • 与外部头像API无集成

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

random_avatar

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

Visitors Count

Loading

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目