Skip to content
pubscout

avatar_stack

3.0.0, released 2 years ago by an unverified publisher

A Flutter widget that stacks avatars or any widgets with configurable alignment, coverage and animation.

WASM-ready
$ flutter pub add avatar_stack
Source repository

What it does

Provides AnimatedAvatarStack, AvatarStack and WidgetStack to display a collection of images or custom widgets in an overlapping stack. Supports limiting item count, alignment, coverage percentages, info badge, and animation.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to show many user avatars in a compact space
  • You want a customizable overlapping stack of arbitrary widgets
  • You require built‑in animation for the stack

Skip it when

  • You need complex grid or list layouts
  • You require advanced state‑management or networking features

Strengths

  • Highly configurable (alignment, coverage, limit, info widget)
  • Supports any widget, not just images
  • Built‑in animation and easy to use

Weaknesses

  • Only provides stacking UI, no data handling
  • Limited to visual layout, no built‑in responsiveness beyond provided settings

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:avatar_stack/animated_avatar_stack.dart';
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(
  home: Scaffold(
    body: Center(
      child: AnimatedAvatarStack(
        height: 50,
        avatars: [
          for (var n = 0; n < 15; n++)
            NetworkImage('https://i.pravatar.cc/150?img=$n'),
        ],
      ),
    ),
  ),
));

Alternatives

Packages that do the same job and could replace avatar_stack.