Avataaars 是一個 Flutter 套件,可輕鬆建立可自訂的風格化使用者頭像。它提供廣泛的選項,包括臉部特徵、髮型、配件和服裝,讓個人能快速產生獨一無二的個人頭像。該套件可順暢整合至多個平台——Android、iOS、Web、macOS、Windows 和 Linux——非常適合需要使用者個人檔案圖片或聊天頭像的應用程式。透過簡單的 API 和預設計樣板,Avataaars 提升使用者參與度,透過個人化的數位身分。
適用情境
使用者資料圖片產生
聊天頭像在即時通訊應用中
個性化入職體驗
遊戲化應用介面
社群媒體個人檔案客製化
主要特色
豐富的角色外觀自訂選項
跨平台相容性
簡單直覺的 API
預定義字元樣式
支援多種膚色和髮色
輕量且快速的渲染
適合對象
帶有使用者資料的行動與網頁應用
訊息傳遞或社交網絡應用
需要使用者身分驗證的入職流程
遊戲化功能
針對不同使用者群體的應用
使用建議
限於預定義的頭像樣式
可能需要為自定義主題添加額外的樣式
不適合用於寫實風格的頭像
依賴於變體的靜態資源集
核心套件內不支援動畫
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Avataaars
Avataaars is a Flutter package that provides Avataaar classes which enable an easy svg generation of beautiful personal avatars.
This package is heavily inspired by Avataaars Generator.
The original avatars were designed by Pablo Stanley, the Sketch library can be found here.
Presentation
The following Avataaar customizer is not part of this package, but can be found in the example folder.
It should nevertheless showcase the functionality of the Avataaar classes.
(The Color Picker that is visible in the gif, is part of the flex_color_picker package)
Usage
Create a random Avataaar with Avataaar.random()
Edit the individual parts, by making use of the copyWith method.
By using the flutter_svg package to render the svg strings, it can happen that a warning appears in the console.
This warning is most likely along the lines: "unhandled element filter;". It is related to this issue.