ez_circle_avatar 0.0.3 copy "ez_circle_avatar: ^0.0.3" to clipboard
ez_circle_avatar: ^0.0.3 copied to clipboard

A simple Flutter widget for displaying circular avatars with initials and a consistent, automatically generated background color based on a name.

example/main.dart

import 'package:flutter/material.dart';
import 'package:ez_circle_avatar/ez_circle_avatar.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: MyCard(name: 'John Doe'),
        ),
      ),
    );
  }
}

class MyCard extends StatelessWidget {
  final String name;

  const MyCard({super.key, required this.name});

  @override
  Widget build(BuildContext context) {
    return Card(
      child: ListTile(
        leading: EzCircleAvatar(name: name),
        title: Text(name),
      ),
    );
  }
}
0
likes
0
points
13
downloads

Publisher

verified publisherezinner.com

Weekly Downloads

A simple Flutter widget for displaying circular avatars with initials and a consistent, automatically generated background color based on a name.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ez_circle_avatar