Skip to content

Files

Latest commit

8d79a15 · Feb 3, 2025

History

History
53 lines (41 loc) · 869 Bytes

README.md

File metadata and controls

53 lines (41 loc) · 869 Bytes

Stack avatar

Sumary

  • 🚀 Platforms
  • 📃 Description
  • ⚙️ Setup
  • 💻 Use case

Platforms

Android iOS Web

Description

This package provides a set of circular avatar stacks, with an optional counter to indicate the total number of avatars or users.

Setup

Add in this file pubspec.yaml.

  validator:
    git:
      url: [email protected]:iTEEECH/stack_avatar.git
      ref: main

Use case

Import

import 'package:stack_avatar/stack_avatar.dart';

Code

return Column(
  children: <Widget>[
    SizedBox(
      height: 100.0,
      child: StackAvatar(
        counter: 3,
        images: [
          for (int index = 0; index <= 5; index++) NetworkImage('https://i.pravatar.cc/150?img=$index'),
        ],
      ),
    ),
  ],
);