A Flutter package that provides an API for using Dash avatars (Dashatars) in Flutter projects.
Try it out in the demo app.
- Generate Dash avatars (Dashatars)
- Choose from different dashatar types (Silhouette, Basic, Designer, Developer, Manager)
- Use random or specific dashatar variants
- Customize size and background color
- Simple and flexible API
import 'package:dashatar_flutter/dashatar_flutter.dart';
// Basic usage - create a Developer dashatar
Dashatar(
index: 5, // Variant index (0-48)
type: DashatarType.developer,
)
// Create a random dashatar
Dashatar.random()
// Create a basic dashatar
Dashatar.basic()
// Create a silhouette
Dashatar.silhouette()// Custom size and background color
Dashatar(
index: 12,
type: DashatarType.manager,
size: 100,
backgroundColor: Colors.blue.shade100,
)The dashatar images used in this package are from:
Repository: https://github.com/PersianFlutter/dashatars

