搜索插件、代码仓与 APP 分类

flutter_advanced_avatar 封面
插件详情v1.5.3

flutter_advanced_avatar

高级头像提供了一个丰富的 API,用于自定义小部件,为您的应用带来全新的外观和感觉。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4620
喜欢数
112
Pub 分数
160

安装插件

flutter pub add flutter_advanced_avatar

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

flutter_advanced_avatar 是一个可自定义的头像控件,通过丰富的样式选项和高级功能增强用户个人资料的显示。它支持多种形状、边框、徽章以及图像加载配置,使开发者能够创建符合其应用设计的视觉吸引力强的头像。该包可在多个平台上无缝集成,确保在 Android、iOS、Web、macOS、Windows 和 Linux 上保持一致的性能和外观。通过灵活的 API,它赋予 UI 设计师和开发者无需编写样板代码即可实现独特头像样式的强大能力。

适合场景

  • 用户资料展示
  • 聊天界面
  • 团队成员卡片
  • 社交媒体资料
  • 仪表板小部件

主要特点

  • 可定制的形状和尺寸
  • 徽章支持
  • 边框样式
  • 使用占位符加载图像
  • 平台一致性

适合对象

  • 带有用户资料的应用程序
  • 消息或聊天应用
  • 仪表板界面
  • 注重设计的应用程序

使用建议

  • 需要图像 URL 或资源引用
  • 仅限视觉自定义
  • 无内置用户数据管理

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

flutter_advanced_avatar

An advanced avatar provides a rich API for widget customization that opens a new look and feel in your app.

APP_ICON

Advanced Avatar Theme LAF

Advanced Avatar Light Theme Advanced Avatar Dark Theme
PREVIEW_LIGHT PREVIEW_DARK

AdvancedAvatar Parameters

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

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。