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

avatar_glow 封面
插件详情v3.0.1

avatar_glow

一个提供带有酷炫背景发光动画的头像发光控件的 Flutter 包

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4.6万
喜欢数
1240
Pub 分数
150

安装插件

flutter pub add avatar_glow

插件介绍

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

Avatar Glow 是一个 Flutter 包,通过在头像周围添加视觉上吸引人的发光动画来增强用户资料。它提供了一个可自定义的 AvatarGlow 小部件,可添加动态背景发光效果,非常适合用于个人资料图片或聊天头像。该动画流畅且响应迅速,在 Android、iOS、Web、macOS、Windows 和 Linux 等所有主要平台上均能正常运行。非常适合注重视觉反馈和互动性的现代 UI。

适合场景

  • 个人资料图片亮点
  • 聊天头动画
  • 交互式用户头像
  • 入门屏幕
  • 游戏化界面
  • 应用中的视觉反馈

主要特点

  • 平滑发光动画
  • 可定制的发光半径
  • 支持所有 Flutter 平台
  • 与现有小部件的轻松集成
  • 可配置的动画持续时间
  • 对用户交互做出响应

适合对象

  • 寻求视觉魅力的UI设计师
  • 开发社交或消息应用的开发者
  • 带有交互式个人资料元素的应用程序
  • 需要微妙动画的项目
  • 专注于精心设计的用户体验

使用建议

  • 可能会影响低端设备的性能
  • 发光效果可能不适合极简设计
  • 需要仔细的色彩对比以确保可读性
  • 动画可能会在注重可访问性的应用程序中造成干扰
  • 不适合静态或非交互式内容

原始 README

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

Avatar Glow GitHub stars Twitter Follow GitHub last commit Website shields.ioOpen Source Love

An Avatar Glow Flutter Widget with cool background glowing animation.

Live Demo: https://apgapg.github.io/avatar_glow/

PieChart

💻 Installation

In the dependencies: section of your pubspec.yaml, add the following line:

Version

dependencies:
  avatar_glow: <latest version>

To use the latest changes:

  avatar_glow:
    git:
      url: https://github.com/apgapg/avatar_glow
      ref: master

❔ Usage

Import
import 'package:avatar_glow/avatar_glow.dart';

Usage is simple. Avatar Glow is a widget offering different customizable optional parameters with child displayed at its center.

Simple Implementation
AvatarGlow(
 endRadius: 60.0,
 child: Material(     // Replace this child with your own
   elevation: 8.0,
   shape: CircleBorder(),
   child: CircleAvatar(
     backgroundColor: Colors.grey[100],
     child: Image.asset(
       'assets/images/dart.png',
       height: 50,
     ),
     radius: 30.0,
   ),
 ),
),
Full Implementation
AvatarGlow(
  startDelay: const Duration(milliseconds: 1000),
  glowColor: Colors.white,
  glowShape: BoxShape.circle,
  animate: _animate,
  curve: Curves.fastOutSlowIn,
  child: const Material(
    elevation: 8.0,
    shape: CircleBorder(),
    color: Colors.transparent,
    child: CircleAvatar(
      backgroundImage: AssetImage('assets/images/avatar.png'),
      radius: 50.0,
    ),
  ),
),

⭐ My Flutter Packages

  • json_table GitHub stars Create Flutter Json Table from json map directly.
  • pie_chart GitHub stars Flutter Pie Chart with cool animation.
  • search_widget GitHub stars Flutter Search Widget for selecting an option from list.
  • animating_location_pin GitHub stars Flutter Animating Location Pin Widget providing Animating Location Pin Widget which can be used while fetching device location.

⭐ My Flutter Apps

👍 Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

所属分类

源码仓库

使用此插件的项目