这是indexloc提供的服务,不要输入任何密码

glow_avatar 1.0.2 copy "glow_avatar: ^1.0.2" to clipboard
glow_avatar: ^1.0.2 copied to clipboard

A Flutter widget that displays circular avatars with a customizable glowing border, perfect for user profiles and UI effects.

🌟 Glow Avatar for Flutter #

Pub Version License GitHub stars

A beautiful glowing avatar widget for Flutter ✨.
Perfect for profile pictures, user icons, social apps, chat apps, or games.
Easy to use, customizable, and lightweight.


🚀 Features #

  • 🔵 Glowing border around any widget
  • 🎨 Custom glow color, size, and radius
  • 🖼️ Works with Icons, Images, Text, Emojis
  • 📱 Flutter-ready for Android, iOS, Web, and Desktop
  • ⚡ Zero dependencies – super lightweight!

📸 Preview #

WhatsApp Image 2025-08-30 at 10 12 32 AM (3)

glow_avatar Package Code #


import 'package:flutter/material.dart';

/// A circular avatar with a glowing border.
///
/// Example:
/// ```dart
/// GlowAvatar(
///   radius: 40,
///   glowColor: Colors.blue,
///   child: Icon(Icons.person, size: 40),
/// )
/// ```
class GlowAvatar extends StatelessWidget {
  final double radius;
  final Color glowColor;
  final double glowRadius;
  final Widget child;
  final Color backgroundColor;
  final BoxBorder? border;

  const GlowAvatar({
    super.key,
    required this.child,
    this.radius = 40,
    this.glowColor = Colors.blue,
    this.glowRadius = 12,
    this.backgroundColor = Colors.white,
    this.border,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      width: radius * 2,
      height: radius * 2,
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        color: backgroundColor,
        border: border,
        boxShadow: [
          BoxShadow(
            color: glowColor.withOpacity(0.7),
            blurRadius: glowRadius,
            spreadRadius: 4,
          ),
        ],
      ),
      child: ClipOval(child: Center(child: child)),
    );
  }
}

📦 Installation #

Add to your pubspec.yaml:

dependencies:
  glow_avatar: ^0.0.1
4
likes
150
points
38
downloads

Publisher

verified publisheryogeshmoradiya.shop

Weekly Downloads

A Flutter widget that displays circular avatars with a customizable glowing border, perfect for user profiles and UI effects.

Repository (GitHub)
View/report issues

Topics

#avatar #glow #ui

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on glow_avatar