0 purchases
tiny avatar
A simple way to generate and display pseudo-random avatars for your users. Inspired by tinygraphs.com
Getting started #
Install the package:
flutter pub add tiny_avatar
Import it into your project:
import 'package:tiny_avatar/tiny_avatar.dart';
copied to clipboard
Features #
Generate unique avatars from a single string
Customize colour, shape, and size with ease
Avatars are consistent - the same string always leads to the same result
Complete documentation
Usage #
TinyAvatar(
baseString: 'John',
dimension: 150,
);
copied to clipboard
Customization #
// Change colour scheme
TinyAvatar(
baseString: 'c418',
dimension: 150,
colourScheme: TinyAvatarColourScheme.heated,
),
// Circular option
TinyAvatar(
baseString: 'Mary',
dimension: 150,
circular: true,
),
// Custom border radius
TinyAvatar(
baseString: 'Elton John',
dimension: 150,
colourScheme: TinyAvatarColourScheme.seascape,
borderRadius: 30,
),
// Custom colour scheme
TinyAvatar(
baseString: 'Superman',
dimension: 150,
colourScheme: TinyAvatarColourScheme.summer,
customColours: const [
Colors.red,
Colors.orange,
Colors.orangeAccent,
Colors.yellow
],
)
copied to clipboard
Additional information #
Github: https://github.com/PeterTheSalmon/tiny_avatar
Want something added? Open an issue or pull request!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.