DiceBear API wrapper. DiceBear is an avatar library for designers and developers. Generate random avatar profile pictures!

Related tags

Templates dice_bear
Overview


dice_bear
Flutter Package

DiceBear API wrapper. DiceBear is an avatar library for designers and developers. Generate random avatar profile pictures!

GitHub stars pub package

Checkout DiceBear

Checkout all available styles here

Usage

Import

import 'package:dice_bear/dice_bear.dart';

Create Avatar object

Avatar _avatar = DiceBearBuilder().build();

Or generate random Avatar everytime:

Avatar _avatar = DiceBearBuilder.withRandomSeed().build();

See below for available DiceBearBuilder() Parameters

Get Uri of generate image

Uri uri = _avatar.svgUri;

Get a Widget using Avatar

Widget image = avatar.toImage();

See below for available toImage() parameters.

Get raw SVG bytes data

Uint8List? raw = await avatar.asRawSvgBytes();

DiceBearBuilder() Parameters

These options effect the SVG. They does not effect the widget created by avatar.toImage(). See avatar.toImage() Parameters below.

Parameter Details Default Value Range Comment
DiceBearSprite? sprite Design of avatar to show DiceBearSprite.any See all styles
String? seed Seed for the avatar '' You can use UID of user to generate a personal avatar of that user.
Color? backgroundColor Background color No Color (Transparent) Opacity/Alpha does not effect the background color.
int radius Radius 0 min: 0
max: 20
int size Size of SVG min: 1 This does not define the size of widget.
int scale Scale avatar inside SVG container 100 min: 0
max: 200
bool flip Flip avatar horizontally false
int rotate Number if degrees to rotate image clockwise 0 min: 0
max: 360
int translateX Translate avatar SVG along X-axis 0 min: -100
max: 100
int translateY Translate avatar SVG along Y-axis 0 min: -100
max: 100

avatar.toImage() Parameters

Parameter Default Value
Key? key
double? width
double? height
BoxFit fit BoxFit.contain
Alignment alignment Alignment.center
bool matchTextDirection false
bool allowDrawingOutsideViewBox false
WidgetBuilder? placeholderBuilder
Color? color
BlendMode colorBlendMode BlendMode.srcIn
String? semanticsLabel
bool excludeFromSemantics false
Clip clipBehavior Clip.hardEdge
bool cacheColorFilter false
SvgTheme? theme
You might also like...

Taking many pictures and photos list in the same page

Taking many pictures and photos list in the same page

Custom Camera Preview A component has developed with Flutter Purpose Instead of taking photos of a product and taking them one by one when users need

Oct 28, 2022

๐ŸŒฐ๐ŸŒฐ [BLOC_PATTERN] [RXDART] [STREAM] ๐Ÿ„๐Ÿ„ Simple auth app flutter, server node.js, BLoC pattern, RxDart ๐Ÿ๐Ÿ Functionalities: LOGIN, REGISTER, CHANGE PASSWORD, CHANGE AVATAR, FORGOT PASSWORD. Pure rxdart BLoC pattern. BLoC pattern without library.

๐ŸŒฐ๐ŸŒฐ [BLOC_PATTERN] [RXDART] [STREAM] ๐Ÿ„๐Ÿ„ Simple auth app flutter, server node.js, BLoC pattern, RxDart ๐Ÿ๐Ÿ Functionalities: LOGIN, REGISTER, CHANGE PASSWORD, CHANGE AVATAR, FORGOT PASSWORD. Pure rxdart BLoC pattern. BLoC pattern without library.

node_auth #node-auth-flutter-BLoC-pattern-RxDart โ„๏ธ โ„๏ธ BLoC pattern rxdart stream ๐Ÿ‹ ๐Ÿ‹ Simple auth app flutter, server node.js, BLoC pattern, RxDart

Dec 29, 2022

๐Ÿš€ A simple & beautiful mobile tool for pictures uploading built by flutter

๐Ÿš€ A simple & beautiful mobile tool for pictures uploading built by flutter

Flutter-PicGo ๅ›พ็‰‡ไธŠไผ +็ฎก็†ๆ–ฐไฝ“้ชŒ ๅบ”็”จๆฆ‚่ฟฐ Flutter-PicGo: ไธ€ไธช็”จไบŽๅฟซ้€ŸไธŠไผ ๅ›พ็‰‡ๅนถ่Žทๅ–ๅ›พ็‰‡URL้“พๆŽฅ็š„ๆ‰‹ๆœบ็‰ˆๅทฅๅ…ท Flutter-PicGo ๆœฌไฝ“ๆ”ฏๆŒๅฆ‚ไธ‹ๅ›พๅบŠ๏ผš GitHub [v1.0+] SM.MS [v1.1+] Gitee [v1.2+] ไธƒ็‰›ไบ‘ [v1.3+]

Jan 5, 2023

DEVS: Developer Board and Jobs Listing | For Developers, By Developers

DEVS: Developer Board and Jobs Listing | For Developers, By Developers

devs Setup Currently, this DEVS project is using the master channel of the Flutter SDK. TODO: Migrate to beta Clone the project git clone https://gith

Apr 16, 2022

The lightweight and powerful wrapper library for Twitter Ads API written in Dart and Flutter ๐Ÿฆ

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Aug 26, 2022

Unofficial twitch open api - Wrapper for the newest Twitch API. It returns information about channels, media, search and game

๐Ÿ“ฆ unofficial_twitch_auth This package allows to retrieve all the data by the ne

Feb 3, 2022

A most easily usable Duolingo API wrapper in Dart. Duolingo4D is an open-sourced Dart library.

A most easily usable Duolingo API wrapper in Dart! 1. About Duolingo4D Duolingo4D is an open-sourced Dart library. With Duolingo4D, you can easily int

Oct 17, 2022

A group of overlapping round avatars are called face piles, a face pile is a series of overlapping avatar images that come and go as users join and leave a given group.

A group of overlapping round avatars are called face piles, a face pile is a series of overlapping avatar images that come and go as users join and leave a given group.

Flutter Face Pile A group of overlapping round avatars are called face piles. A face pile is a series of overlapping avatar images that come and go as

Sep 22, 2022

RandomQuotesApi - Get Random Quote using API And Flutter

RandomQuotesApi - Get Random Quote using API And Flutter

get Random Quotes using api get random quotes using random api also given pull t

Jun 26, 2022
Comments
Owner
Zaif Senpai
Zaif Senpai
CircularProfileAvatar is a Flutter package which allows developers to implement circular profile avatar

CircularProfileAvatar is a Flutter package which allows developers to implement circular profile avatar with border, overlay, initialsText and many other awesome features, which simplifies developers job. It is an alternative to Flutter's CircleAvatar Widget.

Muhammad Adil 85 Oct 5, 2022
Kc - A Simple App Solution for Calculation Fraction (Kali) size of a Lehenga. this is very useful for Fashion designers and tailors. Simple UI with best User Experience.

kc A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this is yo

Praveen Suthar 0 Jan 8, 2022
A simple flutter application using #clean_architecture to generate random quotes using from #api

flutter_random_quotes_app_wth_clean_architecture A new Flutter project. Getting Started Project Structure โ”œโ”€โ”€ assets | โ”œโ”€โ”€ images | โ”œโ”€โ”€ 1x

Hossam Mohammad 2 Oct 4, 2022
Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

advance_image_picker Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edi

Weta Vietnam 91 Dec 19, 2022
Chance Dart is a free Open Source project that lets you create random strings, integers, and other things to help with tiresome tasks, especially when building automated tests or wherever else you require anything random.

Chance Dart Random generator helper for Dart Homepage โ€ข Documentation Overview Chance Dart is a free Open Source project that lets you create random s

Ayotomide 55 Dec 27, 2022
Flutter profile ui - Round Image Profile UI For Flutter

round_image_page A new Flutter project.

Mahfozur Rahman Asif 2 Oct 21, 2022
Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

JSON to Dart Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON. This library is designed to ge

Javier Lecuona 1.2k Dec 25, 2022
A Flutter example about simple authentication with Auth0 and generate random QR code.

ryougoku This is Flutter example about simple authentication with Auth0 and generate random QR code. Environment setup Use need to create a .env.devel

null 4 Sep 24, 2022
Aditya 93 Dec 25, 2022
A most easily usable RESAS API wrapper in Dart. With this library, you can easily integrate your application with the RESAS API.

A most easily usable RESAS API wrapper library in Dart! 1. About 1.1. What Is RESAS? 1.2. Introduction 1.2.1. Install Library 1.2.2. Import It 1.2.3.

Kato Shinya 2 Apr 7, 2022