avatar_brick
1.0.2, released 4 months ago by an unverified publisher
A Flutter avatar widget with automatic initials fallback and multi-source image support.
What it does
Avatar Brick wraps network, asset, file, and memory images behind a consistent API while automatically falling back to initials when no photo is available. It provides styling for size, shape, borders, shadows, and colors.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need user avatars or profile pictures that support both photos and initials fallbacks
- You want a unified API for network, asset, file, and memory images with shared styling
- You need non-circular avatars with custom borders and shadows
Skip it when
- You need to use SVGs directly via flutter_svg
- You want cached_network_image integration out of the box
- You need the initials fallback to trigger automatically on a network image load error
Strengths
- One consistent API across all image sources
- Automatic initials generation from full names
- No extra dependencies outside of the Flutter SDK
- Customizable size, shapes, borders, and shadows
Weaknesses
- Does not support SVG widgets directly
- Does not support CachedNetworkImage directly
- Network image load failure renders empty space rather than switching to initials
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
AvatarBrick.network(
src: user.avatarUrl,
name: user.fullName,
);Alternatives
Packages that do the same job and could replace avatar_brick.
- octo_image
Advanced image loading with built-in placeholder and error builders for network images.
94Compare - cached_network_image
If you need network image caching and custom placeholder/error widgets.
91Compare