name_avatar 0.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

The NameAvatar widget in Flutter is a versatile widget designed to showcase a circular avatar along with text representing a name. It serves as a convenient tool for showcasing user avatars across different applications.

NameAvatar Widget

The NameAvatar widget is a customizable Flutter widget that displays a circular avatar with text representing a name. This widget is particularly useful for displaying user avatars in various applications.

How to use

import 'package:name_avatar/name_avatar.dart';
NameAvatar(
    name: 'John Doe',
    radius: 50,
    backgroundColor: Colors.blue,
    textColor: Colors.white,
    textStyle: TextStyle(fontWeight: FontWeight.bold),
)

Features

  • Displays a circular avatar with a customizable radius.
  • Customizable background color, text color, and text style.
  • Option to display either the first character or the first two characters of the name.
  • Randomly generates background color if none is provided.