flutter_advanced_avatar
高级头像提供了一个丰富的 API,用于自定义小部件,为您的应用带来全新的外观和感觉。
112喜欢 3520近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
https://pub.dev/packages/flutter_advanced_avatar
{"sdk":"flutter"}^1.3.0^4.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
An advanced avatar provides a rich API for widget customization that opens a new look and feel in your app.
APP_ICON
| Advanced Avatar Light Theme | Advanced Avatar Dark Theme |
|---|---|
| PREVIEW_LIGHT | PREVIEW_DARK |
| Parameter | Description | Type | Default |
|---|---|---|---|
name |
Used for creating initials. (Regex split by r'\s+/') | String | |
size |
Avatar size (width = height). | double | 80.0 |
image |
Avatar image source exclusively with [child]. | ImageProvider | |
margin |
Avatar margin. | EdgeInsetsGeometry | |
style |
Initials text style. | TextStyle | |
statusColor |
Status color. | Color | |
statusSize |
Status size. | double | 12.0 |
statusAlignment |
Status alignment. | Alignment | Alignment.topRight |
decoration |
Avatar decoration. | BoxDecoration | color, shape |
foregroundDecoration |
Avatar foreground decoration. | BoxDecoration | |
child |
Child widget exclusively with [image]. | Widget | |
children |
Hosted widgets. | Widget | |
animated |
Use AnimatedContainer | bool | false |
duration |
AnimatedContainer duration | Duration | Duration(milliseconds: 300) |
autoTextSize |
Auto name text size | bool | false |