FLUTTER ECOSYSTEM

deniscolak/colorize-text-avatar

ユーザーが簡単に TextAvatar を作成できる Flutter プラグイン!

colorize-text-avatar のプロジェクト画像
Stars
23
Forks
19
最終プッシュ(UTC)
2024/08/21
プロジェクト状態
公開中
Deniz Çolak GitHub avatar
GITHUB User

Deniz Çolak ↗

AltogicTurkey公式サイト ↗
言語DartHTMLSwiftKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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