apgapg / avatar_glow

A Flutter Package providing Avatar Glow Widget
https://pub.dartlang.org/packages/avatar_glow
MIT License
272 stars 48 forks source link

[Feature request] glowDuration or numberOfRepeats #22

Open aytunch opened 2 years ago

aytunch commented 2 years ago

by using duration we set the animation duration of a single ripple effect. But I want the AvatarGlow to make ripple effect 5 times, each with a 1 second duration For the current API we can not do this. Can you please expose numberOfRepeats?

Also null safety version works, so maybe you can update the package's default as the null safe version? Thanks

apgapg commented 2 years ago

Hi @aytunch I don't get numberOfRepeats thing. What do you mean by make ripple effect 5 times, each with a 1 second duration ?

apgapg commented 2 years ago

Also package is already null safe and published.

aytunch commented 2 years ago

@apgapg right now we can tell the AvatarGlow to Not animate(animate=false) Animate once(repeat=false) Animate forever(repeat=true)

I want to have a repeat count. This will repeat the glow animation n times and then stop.

Yeah I use the null safe version but the version name is very long

apgapg commented 2 years ago

@aytunch Got that now. You need to define repeat count number. Need to figure out on how to do this. May be a variable counter.

apgapg commented 2 years ago

Would you try contributing this feature? @aytunch

rohitbhoite commented 5 months ago

Added this change in below PR: https://github.com/apgapg/avatar_glow/pull/39