avatar_glow icon indicating copy to clipboard operation
avatar_glow copied to clipboard

glowRepeatCount variable added to repeat animation a specific number of times

Open rohitbhoite opened this issue 2 months ago โ€ข 3 comments

The animation will be repeated 5 times as glowRepeatCount is set to 5. If this value is not passed then it will have existing behaviour.

Code:

AvatarGlow(
        animate: _animate,
        glowRepeatCount: 5,
        glowColor: Colors.cyan,
        child: Material(
          elevation: 8.0,
          shape: const CircleBorder(),
          child: CircleAvatar(
            backgroundColor: Colors.grey[100],
            radius: 30.0,
            child: Image.asset(
              'assets/images/dart.png',
              height: 50,
            ),
          ),
        ),
      )

https://github.com/apgapg/avatar_glow/assets/13239043/2029e508-6f5d-467c-9e55-add99d568ee7

Description

Type of Change

  • [x] โœจ New feature (non-breaking change which adds functionality)
  • [ ] ๐Ÿ› ๏ธ Bug fix (non-breaking change which fixes an issue)
  • [ ] โŒ Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] ๐Ÿงน Code refactor
  • [ ] โœ… Build configuration change
  • [ ] ๐Ÿ“ Documentation
  • [ ] ๐Ÿ—‘๏ธ Chore

rohitbhoite avatar Apr 10 '24 10:04 rohitbhoite