name_avatar 0.0.1 copy "name_avatar: ^0.0.1" to clipboard
name_avatar: ^0.0.1 copied to clipboard

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 dif [...]

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.
3
likes
140
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on name_avatar