https://github.com/adityadees/flutter_profile_picture
Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter. :fire: :fire: :fire: https://adityadees.github.io/flutter_profile_picture/
https://github.com/adityadees/flutter_profile_picture
dart flutter flutter-apps flutter-examples flutter-package flutter-ui
Last synced: 3 months ago
JSON representation
Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter. :fire: :fire: :fire: https://adityadees.github.io/flutter_profile_picture/
- Host: GitHub
- URL: https://github.com/adityadees/flutter_profile_picture
- Owner: adityadees
- License: mit
- Created: 2021-09-20T07:59:44.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T11:02:28.000Z (over 2 years ago)
- Last Synced: 2024-08-01T12:26:11.930Z (11 months ago)
- Topics: dart, flutter, flutter-apps, flutter-examples, flutter-package, flutter-ui
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_profile_picture
- Size: 5.07 MB
- Stars: 11
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FLUTTER PROFILE PICTURE
Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter.
[](https://github.com/adityadees/flutter_profile_picture/actions/workflows/flutter-test.yml)
[](https://github.com/adityadees/flutter_profile_picture/actions/workflows/gh-pages.yml)
[](https://opensource.org/licenses/MIT)
[](https://pub.dartlang.org/packages/flutter_profile_picture)
[](https://github.com/adityadees/flutter_profile_picture/stargazers/)

## Style
### Default Style

``` dart
ProfilePicture(
name: 'Dees',
radius: 31,
fontsize: 21,
);ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
);
```### Random Color

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
random: true,
);
```### Max letter

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
count: 3,
);
```### Empty Name / Blank

``` dart
ProfilePicture(
name: '',
radius: 31,
fontsize: 21,
);
```### With Images

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
img: 'https://avatars.githubusercontent.com/u/37553901?v=4',
);
```### Tooltips without role

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: '',
radius: 31,
fontsize: 21,
tooltip: true,
);
```### Tooltips with role

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: 'ADMINISTRATOR',
radius: 31,
fontsize: 21,
tooltip: true,
);
```### Tooltips with role and images

``` dart
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: 'ADMINISTRATOR',
radius: 31,
fontsize: 21,
tooltip: true,
img: 'https://avatars.githubusercontent.com/u/37553901?v=4',
);
```