Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geekswamp/alphatar

Alphabet Avatar for Flutter
https://github.com/geekswamp/alphatar

Last synced: about 1 hour ago
JSON representation

Alphabet Avatar for Flutter

Awesome Lists containing this project

README

        

# Alphatar

![License](https://img.shields.io/github/license/arifai/alphatar) ![Pub version](https://img.shields.io/pub/v/alphatar)

Create an avatar with the initials of your text.

## Screenshot



## Installation

In the `dependencies:` section of your `pubspec.yaml`, add the following line:

```yaml
alphatar:
```

## Usage

You can use it very easily. For example:

```dart
class Example extends StatelessWidget {
const Example({Key key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Container(
alignment: Alignment.center,
child: Alphatar(
initials: "Alice",
backgroundColor: Colors.purple[900],
onTap: () => print("Awesome!"),
),
);
}
}
```

## License

MIT