搜尋套件、儲存庫與 APP 分類

colorize_text_avatar 封面
套件詳情v1.0.2

colorize_text_avatar

Colorize Text Avatar 是一個根據使用者首字母產生頭像的套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1010
喜歡數
52
Pub 分數
130

安裝套件

flutter pub add colorize_text_avatar

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Colorize Text Avatar 是一個 Flutter 套件,可根據使用者首字母產生色彩豐富的頭像。它會自動根據文字輸入建立視覺上獨特且鮮豔的頭像,非常適合用於具有聊天介面或使用者資料的應用程式中的個人檔案圖片。此套件支援 Android、iOS、Web、macOS、Windows 及 Linux 等多個平台,確保在各種裝置上頭像呈現的一致性。輕量且易於整合,非常適合需要快速動態頭像卻不依賴外部圖片的應用程式。

適用情境

  • 使用者個人檔案圖片
  • 聊天頭像
  • 儀表板用戶指標
  • 入門畫面
  • 團隊成員顯示

主要特色

  • 基於首字母的頭像生成
  • 可自定顏色
  • 跨平台支援
  • 簡單整合
  • 響應式設計

適合對象

  • 帶有使用者資料的應用程式
  • 訊息或聊天應用程式
  • 內部團隊儀表板
  • 原型和MVP

使用建議

  • 限於文字類頭像
  • 沒有圖像回退選項
  • 顏色一致性可能因主題而異

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Colorize Text Avatar

Colorize Text Avatar is a package to generate avatar based on your user initials. It supports to generate avatars based on your specification or it colorize your avatar by using predefined colors. Enjoy it!

Colorize Text Avatar

Getting Started 🔥

It is an easy and powerfull package to generate text avatars for your users!

Let's see how to generate an avatar easily!

Usage of Colorize Text Avatar 😎

Here is the only mandatory parameter is text.

TextAvatar(
    text: "Deniz Çolak",
)

Colorize Text Avatar

Parameters of Text Avatar 😎

Here is the predefined shapes: Rectangle, Circular or None, if shape is null or not defined the default value similar with Rectangle but not same.

Shape.Rectangle, Shape.Circular, Shape.None can be use.

TextAvatar(
    shape: Shape.Circular,
    text: "Deniz Çolak"
)

Colorize Text Avatar

numberLetters parameter allows user to generate Avatar more specific number of character.

Developer can predefine size and numberLetters, if numberletters is null or not defined the default value is 1.

TextAvatar(
    shape: Shape.Rectangle,
    size: 35,
    numberLetters: 2,

)

Colorize Text Avatar

Other parameters can be change according to your specification.

Developers can extend the TextAvatar model according to their specification, currently below parameters are supported.

TextAvatar(
    shape: Shape.Circular,
    size: 35
    textColor: Colors.white,
    fontSize: 14,
    fontWeight: FontWeight.w600,
    upperCase: true,
    backgroundColor: Colors.black,
    numberLetters: 1,

    text: this.widget.userdata.fullname,
)

License

License

2021

Youtube Channel

Youtube

所屬分類

原始碼儲存庫

使用此套件的專案