Search packages, repositories and app categories

colorize_text_avatar cover
Package detailsv1.0.2

colorize_text_avatar

Colorize Text Avatar is a package to generate avatar based on your user initials.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
595
Likes
52
Pub points
130

Install package

flutter pub add colorize_text_avatar

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Colorize Text Avatar is a Flutter package that generates colorful avatars from user initials. It automatically creates visually distinct, vibrant avatars based on text input, ideal for profile pictures in apps with chat interfaces or user profiles. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent avatar rendering across devices. It's lightweight and easy to integrate, making it perfect for applications needing quick, dynamic avatars without relying on external images.

Use cases

  • User profile pictures
  • Chat head avatars
  • Dashboard user indicators
  • Onboarding screens
  • Team member displays

Key features

  • Initials-based avatar generation
  • Customizable colors
  • Cross-platform support
  • Simple integration
  • Responsive design

Suitable for

  • Apps with user profiles
  • Messaging or chat applications
  • Internal team dashboards
  • Prototypes and MVPs

Considerations

  • Limited to text-based avatars
  • No image fallback option
  • Color consistency may vary by theme

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Source repository

Projects using this package