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