codifyiq_user_avatar 1.0.0 copy "codifyiq_user_avatar: ^1.0.0" to clipboard
codifyiq_user_avatar: ^1.0.0 copied to clipboard

A circular user avatar widget with graceful photo, initials, and icon fallbacks for Flutter apps.

codifyiq_user_avatar #

pub package

A circular user avatar with graceful fallbacks: it shows a photo when available, falls back to the user's initials, and finally to a placeholder icon.

Installation #

dependencies:
  codifyiq_user_avatar: ^1.0.0

Usage #

import 'package:codifyiq_user_avatar/codifyiq_user_avatar.dart';

UserAvatar(
  photoUrl: user.photoUrl,
  displayName: user.displayName,
  radius: 24,
);

Non-URL image sources #

To use an image you already hold in memory or on disk (not a URL), pass an imageProvider. It takes precedence over photoUrl/imageProviderBuilder and flows through the same circular clip, cover fit, and initials fallback:

UserAvatar(imageProvider: MemoryImage(bytes), displayName: user.displayName);

In list contexts, hold a stable MemoryImage instance (it compares bytes by identity) so the image cache can dedupe it across rebuilds.


Part of the CodifyIQ component family · pub.dev/publishers/codifyiq.com

0
likes
160
points
35
downloads

Documentation

API reference

Publisher

verified publishercodifyiq.com

Weekly Downloads

A circular user avatar widget with graceful photo, initials, and icon fallbacks for Flutter apps.

Repository (GitHub)
View/report issues

Topics

#codifyiq #ui #widget #avatar

License

MIT (license)

Dependencies

flutter

More

Packages that depend on codifyiq_user_avatar