Avatar Glow in Flutter

 

Avatar Glow in Flutter
class Avatar_glow extends StatelessWidget {
  const Avatar_glow({super.key});
  @override
  Widget build(BuildContext context) {
    return AvatarGlow(
      shape: BoxShape.circle,
      repeat: true,
      showTwoGlows: true,
      child: Icon(
        Icons.home,
        size: 50,
        color: dblue,
      ),
      endRadius: 100,
      glowColor: dblue,
      duration: Duration(seconds: 1),
      repeatPauseDuration: Duration(seconds: 1),
    );
  }
}

Package - Go to Package Page

Avatar Glow   GitHub last commit  

This Flutter package provides a Avatar Glow Widget with cool background glowing animation.

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

💻 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 this class 

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.PieChart

- 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(
 glowColor: Colors.blue,
 endRadius: 90.0,
 duration: Duration(milliseconds: 2000),
 repeat: true,
 showTwoGlows: true,
 repeatPauseDuration: Duration(milliseconds: 100),
 child: Material(     // Replace this child with your own
   elevation: 8.0,
   shape: CircleBorder(),
   child: CircleAvatar(
     backgroundColor: Colors.grey[100],
     child: Image.asset(
       'assets/images/flutter.png',
       height: 60,
     ),
     radius: 40.0,
   ),
 ),
),

⭐ My Flutter Packages 

  • json_table  Create Flutter Json Table from json map directly.
  • pie_chart  Flutter Pie Chart with cool animation.
  • search_widget  Flutter Search Widget for selecting an option from list.
  • animating_location_pin  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

734LIKES120PUB POINTS98%POPULARITY

Publisher

ayushpgupta.com

Metadata

A Flutter package providing a Avatar Glow Widget with cool background glowing animation.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on avatar_glow

Post a Comment

Previous Post Next Post