in ,

Flutter plugin that allows users to create Text Avatar easily

Colorize Text Avatar

Over the past few years, things have changed a lot. Currently, privacy threats are rising, and people are hesitating to share their actual photos on social networking platforms. However, having a photo avatar is mandatory in this online world.

With Colorize text avatar, it is a package that generates an avatar based on your user initials. Furthermore, it can generate avatars based on your specifications or colorize your avatar using predefined colors. Have fun with it!

Flutter auto colorized text avatar

Getting Started 🔥

To begin with, the first steps, let’s see below.
it is a simple and powerful package for creating text avatar for your users!

Let’s look at how to make an avatar quickly!

Usage of Colorize Text Avatar 😎

Here is the only mandatory parameter is text.

TextAvatar(
    text: "Deniz Çolak",
)

img_1

Parameters of Text Avatar 😎

Here are the predefined shapes: Rectangle, Circular, or None; if the shape is null or not defined, the default value is comparable to but not the same as Rectangle.

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

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

img_2

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,

)

img_3

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,
)

GitHub

github.com/colorize-text avatar

Written by James

An Awesome Flutter Widget to render Bottts svg avatars on android/ios

A free and open-source multicultural avatar maker