avatar_better 0.0.1 copy "avatar_better: ^0.0.1" to clipboard
avatar_better: ^0.0.1 copied to clipboard

This is a complete avatar package that you can use for your profile and avatar.

This is a complete avatar package that you can use for your profile and avatar

Features #

Features:
✔️ Initial Text: Displaying initial text for avatars or placeholders.
✔️ Random Colors: Generating random colors for various elements.
✔️ Random Linear Gradient: Generating random linear gradient colors. ✔️ Avatar Profile: Creating avatars for profiles or user representation. ✔️ Border Avatar: create a border around the avatar . ✔️ gradient Width Border: Create a gradient color for the borders . ✔️ Use ImageAssets . ✔️ Use ImageNetwork .

Capture1

Capture2

Capture3

Getting started #

dependencies:
  avatar: ^0.0.1

How to use #

import 'package:avatar/avatar.dart';

How to install #

Android #

  • To request permissions from the user, you can use the following code: AndroidManifest.xml.
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

  • Add UCropActivity into your AndroidManifest.xml
<activity
    android:name="com.yalantis.ucrop.UCropActivity"
    android:screenOrientation="portrait"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

iOS #

  • No configuration required

Web #

  • Add following codes inside <head> tag in file web/index.html:
<head>
  ....

  <!-- Croppie -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.css" />
  <script defer src="https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.js"></script>

  ....
</head>

example #

 Avatar.circle(
onTapAvatar: () {},
radius: 35,
text: avatar[index],
randomGradient: true,
randomColor: false,
),,
Avatar.profile(
radius: 35,
text: avatar[index],
randomGradient: true,
randomColor: false,
),                           

Buy me a cup of coffee for 5$.

1281229923

Additional information #

If you have any issues, questions, or suggestions related to this package, please feel free to contact us at swan.dev1993@gmail.com. We welcome your feedback and will do our best to address any problems or provide assistance. For more information about this package, you can also visit our GitHub repository where you can find additional resources, contribute to the package's development, and file issues or bug reports. We appreciate your contributions and feedback, and we aim to make this package as useful as possible for our users. Thank you for using our package, and we look forward to hearing from you!

15
likes
0
pub points
65%
popularity

Publisher

verified publisherswanflutterdev.com

This is a complete avatar package that you can use for your profile and avatar.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, image_cropper, image_picker

More

Packages that depend on avatar_better