Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
/ avatar_letter Public archive

It is a widget that uses the first few letters of a word to create an avatar with a set of basic functions..

License

Notifications You must be signed in to change notification settings

srnunio/avatar_letter

Repository files navigation

AvatarLetter

It is a widget that uses the first few letters of a word to create an avatar with a set of basic functions.

Preview

| | |

Getting Started

Add the plugin:

dependencies:
  ...
  avatar_letter: ^1.0.1

Basic Usage

    AvatarLetter(
                  size: 200,
                  backgroundColor: Colors.amber,
                  textColor: Colors.black,
                  fontSize: 100,
                  upperCase: true,
                  numberLetters: 1,
                  letterType: LetterType.Circular,
                  text: 'Test 01',
                ),

Customization (Optional)

AvatarLetter

letterType - Sets the format of the avatar that can be: (Rectangle, circular, none). Default to Rectangle
text - The text that will be used to extract the letters. Default to '?'
textColor - Sets the color of the letters. Default to Black
textColorHex - Sets the color of the letters from a valid hexadecimal code. Default to #ffffff
backgroundColor - Represents the background color of the avatar. Default to Black
backgroundColorHex - Represents the background color of the avatar from a valid hexadecimal code. Default to #000000
numberLetters - Sets the number of letters to be extracted from the text. Default to 1
fontWeight - Sets the font style. Default to Bold
fontFamily - Sets the font . fontSize - Sets the size of the letters within the avatar. Default to 16
upperCase - Used to set the uppercase letters of the avatar. Default to False
size - Sets the size of the avatar. Default to 50

About

It is a widget that uses the first few letters of a word to create an avatar with a set of basic functions..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages