Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay between shimmers #30

Open
joj3000 opened this issue Jul 8, 2020 · 5 comments
Open

Delay between shimmers #30

joj3000 opened this issue Jul 8, 2020 · 5 comments

Comments

@joj3000
Copy link

joj3000 commented Jul 8, 2020

Hi,
I've tried a bunch of different stuff in a lot of places and i can't figure out how to set a delay between two shimmer animations, instead of the animation to starts over once it's finished. Any idea how to achieve this ?

Thanks a lot for your help, and for your awesome package !

@theweiweiway
Copy link

Definitely very interested in this feature as well

@fadhlisulaimi
Copy link

You just have to use period function cleverly.

//assuming you are generating a listview of shimmer records as placeholder
//each record has an index

Shimmer.fromColors(,
                period: Duration(milliseconds: 800 + (index * 100)),
                child: ...
              );

@Near0ne
Copy link

Near0ne commented Nov 20, 2020

Hello, i'm interested in this feature too, in my case, i want to loop the shammer animation to make my component shines every x seconds
Do you think we could get it ?
Thanks in advance !

@jinyus
Copy link

jinyus commented Jan 8, 2021

I submitted a pull request #41 with this feature. You can use my fork in the meantime, in case it's not merged soon.

shimmer:
  git: 
     url: https://github.com/jinyus/flutter_shimmer

@Kerandon
Copy link

I just used this and it worked great. Wonder why this feature is not yet in the pub.dev package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants