Data Presentation

Avatar

A circular image component that displays user profile pictures with a fallback option. The Avatar component provides a consistent way to represent users in your application, displaying profile images with fallbacks to initials or icons when images are unavailable.

CLI

To generate a specific style for customization:

dart run forui style create avatar

Usage

FAvatar(...)

1FAvatar(
2 style: const .delta(backgroundColor: Color(0xFF000000)),
3 size: 40.0,
4 image: const NetworkImage('https://example.com/avatar.png'),
5)

FAvatar.raw(...)

1FAvatar.raw(
2 style: const .delta(backgroundColor: Color(0xFF000000)),
3 size: 40.0,
4 child: const Text('AB'),
5)

Examples

Raw

Fallback

On this page